summaryrefslogtreecommitdiff
path: root/tests/test_malloc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-09-18 14:54:48 +0400
committerIvan Maidanski <ivmai@mail.ru>2012-09-18 14:54:48 +0400
commitebaf32fcb8ebb922bcc4e28ad49fabe3de126e9e (patch)
treed4acee8ff04afa34db16417f5f360a8509c8596e /tests/test_malloc.c
parent23862ab6ff8615d649fc85d1a5f8fd8c452ec302 (diff)
downloadlibatomic_ops-ebaf32fcb8ebb922bcc4e28ad49fabe3de126e9e.tar.gz
Terminate tests with abort after error reported
* tests/test_atomic.c (acqrel_thr): Call abort() after fprintf(stderr). * tests/test_malloc.c (run_one_test): Likewise. * tests/test_stack.c (check_list, main): Likewise.
Diffstat (limited to 'tests/test_malloc.c')
-rw-r--r--tests/test_malloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_malloc.c b/tests/test_malloc.c
index eebd4cc..73ca1ea 100644
--- a/tests/test_malloc.c
+++ b/tests/test_malloc.c
@@ -160,6 +160,7 @@ void * run_one_test(void * arg) {
if (0 == p) {
# ifdef HAVE_MMAP
fprintf(stderr, "AO_malloc(%d) failed\n", LARGE_OBJ_SIZE);
+ abort();
# else
fprintf(stderr, "AO_malloc(%d) failed: This is normal without mmap\n",
LARGE_OBJ_SIZE);