X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-ust-events%2Fgen-ust-events.c;fp=tests%2Futils%2Ftestapp%2Fgen-ust-events%2Fgen-ust-events.c;h=8f2acdbabbfbb28ab8a72b4bb5c4f03dfa8960d4;hp=353523b7c2c3ccd18d8f4fcf0b8f908dc35a0065;hb=56d48389d883f56a0ac017885dc6ad25dab5bc91;hpb=4e88fe0a93f9520f0b1205c242022c917dfc360b 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 353523b7c..8f2acdbab 100644 --- a/tests/utils/testapp/gen-ust-events/gen-ust-events.c +++ b/tests/utils/testapp/gen-ust-events/gen-ust-events.c @@ -109,6 +109,17 @@ int main(int argc, char **argv) if (optind != argc) { fprintf(stderr, "Error: takes long options only.\n"); + + /* + * Aborting the test program for now because callers typically don't check + * the test program return value, and the transition from positional + * arguments to getopt causes hangs when caller scripts are not updated. + * An abort is easier to diagnose and fix. This is a temporary solution: + * we should eventually ensure that all scripts test and report the test + * app return values. + */ + abort(); + ret = -1; goto end; }