From: David Goulet Date: Thu, 28 Nov 2013 19:47:50 +0000 (-0500) Subject: Tests: fix bad argument parsing in test app X-Git-Tag: v2.4.0-rc2~16 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2c34b645d3ec4ea6658fb8e6f12828026018699d;p=lttng-tools.git Tests: fix bad argument parsing in test app Signed-off-by: David Goulet --- diff --git a/tests/utils/testapp/gen-ust-events/gen-ust-events.c b/tests/utils/testapp/gen-ust-events/gen-ust-events.c index 5f1e5bdd4..77d88db2d 100644 --- a/tests/utils/testapp/gen-ust-events/gen-ust-events.c +++ b/tests/utils/testapp/gen-ust-events/gen-ust-events.c @@ -60,12 +60,12 @@ int main(int argc, char **argv) nr_iter = atoi(argv[1]); } - if (argc == 3) { + if (argc >= 3) { /* By default, don't wait unless user specifies. */ nr_usec = atoi(argv[2]); } - if (argc == 4) { + if (argc >= 4) { tmp_file_path = argv[3]; }