summaryrefslogtreecommitdiff
path: root/unittest/mysys/my_malloc-t.c
diff options
context:
space:
mode:
Diffstat (limited to 'unittest/mysys/my_malloc-t.c')
-rw-r--r--unittest/mysys/my_malloc-t.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/unittest/mysys/my_malloc-t.c b/unittest/mysys/my_malloc-t.c
index 00cac0d21b7..40d9492b039 100644
--- a/unittest/mysys/my_malloc-t.c
+++ b/unittest/mysys/my_malloc-t.c
@@ -17,10 +17,10 @@
#include <my_sys.h>
#include "tap.h"
-int main(void)
+int main(int argc,char *argv[])
{
void *p;
- MY_INIT("my_malloc-t");
+ MY_INIT(argv[0]);
plan(4);
@@ -38,6 +38,7 @@ int main(void)
ok((my_free(p), 1), "Free NULL pointer.");
+ my_end(0);
return exit_status();
}