summaryrefslogtreecommitdiff
path: root/common/tests/test-tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/tests/test-tests.c')
-rw-r--r--common/tests/test-tests.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/tests/test-tests.c b/common/tests/test-tests.c
index cd48a13..ba31d83 100644
--- a/common/tests/test-tests.c
+++ b/common/tests/test-tests.c
@@ -60,6 +60,7 @@ test_memory (void)
if (getenv ("TEST_FAIL")) {
mem = malloc (1);
+ assert (mem != NULL);
free (mem);
*mem = 1;
}
@@ -73,6 +74,7 @@ test_leak (void)
if (getenv ("TEST_FAIL")) {
mem = malloc (1);
+ assert (mem != NULL);
*mem = 1;
}
}