#define EC_OPT_SEED "seed"
static const struct option ec_long_options[] = {
- {EC_OPT_HELP, 1, NULL, 'h'},
+ {EC_OPT_HELP, 0, NULL, 'h'},
{EC_OPT_LOG_LEVEL, 1, NULL, 'l'},
{EC_OPT_RANDOM_ALLOC_FAIL, 1, NULL, 'r'},
{EC_OPT_SEED, 1, NULL, 's'},
static void usage(const char *prgname)
{
- printf("%s [options] [test1 test2 test3...]\n"
+ fprintf(stderr, "%s [options] [test1 test2 test3...]\n"
" -h\n"
" --"EC_OPT_HELP"\n"
" Show this help.\n"
ret |= ec_test_one(argv[i]);
}
+ ec_exit();
+
leaks = debug_alloc_dump_leaks();
if (alloc_fail_proba == 0 && ret != 0) {