tests: qemu-boot: Error if extra command line arguments are given.

This commit is contained in:
Richard W.M. Jones
2014-07-29 11:50:41 +01:00
parent 043cf4fbe3
commit f342cfc69d

View File

@@ -147,6 +147,12 @@ main (int argc, char *argv[])
exit (EXIT_FAILURE);
}
if (optind != argc) {
fprintf (stderr, "%s: extra arguments found on the command line\n",
program_name);
exit (EXIT_FAILURE);
}
/* Calculate the number of threads to use. */
if (P > 0)
P = MIN (n, P);