Displaying 4 results from an estimated 4 matches for "qemu_use_wrapper".
2018 Jun 27
0
[PATCH 1/3] test-tool: implement --short-options & --long-options
...g-options"))
+ display_long_options (long_options);
+ else if (STREQ (long_options[option_index].name, "short-options"))
+ display_short_options (options);
+ else if (STREQ (long_options[option_index].name, "qemu")) {
qemu = optarg;
qemu_use_wrapper = 0;
}
--
2.17.1
2018 Jun 27
5
[PATCH 0/3] test-tool: small options-related improvements
*** BLURB HERE ***
Pino Toscano (3):
test-tool: implement --short-options & --long-options
test-tool: add a documentation test
bash: add a completion script for libguestfs-test-tool
.gitignore | 1 +
bash/Makefile.am | 3 ++-
bash/virt-v2v-copy-to-local | 6 +++++
test-tool/Makefile.am
2016 Apr 04
0
[PATCH 2/2] Use 'error' function for fprintf followed by exit.
...+35,7 @@
#include <limits.h>
#include <libintl.h>
-#include <guestfs.h>
+#include "guestfs.h"
#include "guestfs-internal-frontend.h"
#include "ignore-value.h"
@@ -111,35 +111,24 @@ main (int argc, char *argv[])
qemu = optarg;
qemu_use_wrapper = 1;
}
- else {
- fprintf (stderr,
- _("libguestfs-test-tool: unknown long option: %s (%d)\n"),
- long_options[option_index].name, option_index);
- exit (EXIT_FAILURE);
- }
+ else
+ error (EXIT_FAILURE, 0,
+...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
Wherever we had code which did:
if (something_bad) {
perror (...);
exit (EXIT_FAILURE);
}
replace this with use of the error(3) function:
if (something_bad)
error (EXIT_FAILURE, errno, ...);
The error(3) function is supplied by glibc, or by gnulib on platforms
which don't have it, and is much more flexible than perror(3). Since
we already use error(3), there seems to be