[Pkg-libvirt-commits] [libguestfs] 49/266: tests: qemu-boot: Error if extra command line arguments are given.
Hilko Bengen
bengen at moszumanska.debian.org
Fri Oct 3 14:41:40 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag debian/1%1.27.35-1
in repository libguestfs.
commit f342cfc69df2e55b2c0e79595d2a085396475af0
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Tue Jul 29 11:50:41 2014 +0100
tests: qemu-boot: Error if extra command line arguments are given.
---
tests/qemu/qemu-boot.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/qemu/qemu-boot.c b/tests/qemu/qemu-boot.c
index 56eec57..c1205d3 100644
--- a/tests/qemu/qemu-boot.c
+++ b/tests/qemu/qemu-boot.c
@@ -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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list