git.droids-corp.org
/
protos
/
libecoli.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
api documentation
[protos/libecoli.git]
/
test
/
test.c
diff --git
a/test/test.c
b/test/test.c
index
1b2b7ef
..
d60adfc
100644
(file)
--- a/
test/test.c
+++ b/
test/test.c
@@
-39,7
+39,7
@@
static const char ec_short_options[] =
#define EC_OPT_SEED "seed"
static const struct option ec_long_options[] = {
#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'},
{EC_OPT_LOG_LEVEL, 1, NULL, 'l'},
{EC_OPT_RANDOM_ALLOC_FAIL, 1, NULL, 'r'},
{EC_OPT_SEED, 1, NULL, 's'},
@@
-48,7
+48,7
@@
static const struct option ec_long_options[] = {
static void usage(const char *prgname)
{
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"
" -h\n"
" --"EC_OPT_HELP"\n"
" Show this help.\n"
@@
-390,6
+390,8
@@
int main(int argc, char **argv)
ret |= ec_test_one(argv[i]);
}
ret |= ec_test_one(argv[i]);
}
+ ec_exit();
+
leaks = debug_alloc_dump_leaks();
if (alloc_fail_proba == 0 && ret != 0) {
leaks = debug_alloc_dump_leaks();
if (alloc_fail_proba == 0 && ret != 0) {