Tests: fix bad argument parsing in test app
authorDavid Goulet <dgoulet@efficios.com>
Thu, 28 Nov 2013 19:47:50 +0000 (14:47 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 28 Nov 2013 19:47:50 +0000 (14:47 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
tests/utils/testapp/gen-ust-events/gen-ust-events.c

index 5f1e5bdd4e1dec155399fbb38c418ef82f54752d..77d88db2d184c7506f522a06974e975c644b4c4a 100644 (file)
@@ -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];
        }
 
This page took 0.025966 seconds and 4 git commands to generate.