support exit callback registration
[protos/libecoli.git] / test / test.c
index c874af9..d60adfc 100644 (file)
@@ -390,6 +390,8 @@ int main(int argc, char **argv)
                        ret |= ec_test_one(argv[i]);
        }
 
+       ec_exit();
+
        leaks = debug_alloc_dump_leaks();
 
        if (alloc_fail_proba == 0 && ret != 0) {