7486fd
diff --git a/libatomic_ops/tests/test_atomic.c b/libatomic_ops/tests/test_atomic.c
7486fd
index e354024..b8906e9 100644
7486fd
--- a/libatomic_ops/tests/test_atomic.c
7486fd
+++ b/libatomic_ops/tests/test_atomic.c
7486fd
@@ -77,7 +77,10 @@ void * acqrel_thr(void *id)
7486fd
       {
7486fd
         AO_t my_counter1;
7486fd
     if (me != 1)
7486fd
-      fprintf(stderr, "acqrel test: too many threads\n");
7486fd
+      {
7486fd
+        fprintf(stderr, "acqrel test: too many threads\n");
7486fd
+        abort();
7486fd
+      }
7486fd
     my_counter1 = AO_load(&counter1);
7486fd
     AO_store(&counter1, my_counter1 + 1);
7486fd
     AO_store_release_write(&counter2, my_counter1 + 1);
7486fd
diff --git a/libatomic_ops/tests/test_malloc.c b/libatomic_ops/tests/test_malloc.c
7486fd
index a1f4179..a19ffd5 100644
7486fd
--- a/libatomic_ops/tests/test_malloc.c
7486fd
+++ b/libatomic_ops/tests/test_malloc.c
7486fd
@@ -151,6 +151,7 @@ void * run_one_test(void * arg) {
7486fd
   if (0 == p) {
7486fd
 #   ifdef HAVE_MMAP
7486fd
       fprintf(stderr, "AO_malloc(%d) failed\n", LARGE_OBJ_SIZE);
7486fd
+      abort();
7486fd
 #   else
7486fd
       fprintf(stderr, "AO_malloc(%d) failed: This is normal without mmap\n",
7486fd
               LARGE_OBJ_SIZE);
7486fd
diff --git a/libatomic_ops/tests/test_stack.c b/libatomic_ops/tests/test_stack.c
7486fd
index bf3180d..e654c35 100644
7486fd
--- a/libatomic_ops/tests/test_stack.c
7486fd
+++ b/libatomic_ops/tests/test_stack.c
7486fd
@@ -97,14 +97,23 @@ void check_list(int n)
7486fd
        p = (list_element *)AO_REAL_NEXT_PTR(p -> next))
7486fd
     {
7486fd
       if (p -> data > n || p -> data <= 0)
7486fd
-        fprintf(stderr, "Found erroneous list element %d\n", p -> data);
7486fd
+        {
7486fd
+          fprintf(stderr, "Found erroneous list element %d\n", i);
7486fd
+          abort();
7486fd
+        }
7486fd
       if (marks[p -> data] != 0)
7486fd
-        fprintf(stderr, "Found duplicate list element %d\n", p -> data);
7486fd
+        {
7486fd
+          fprintf(stderr, "Found duplicate list element %d\n", i);
7486fd
+          abort();
7486fd
+        }
7486fd
       marks[p -> data] = 1;
7486fd
     }
7486fd
   for (i = 1; i <= n; ++i)
7486fd
     if (marks[i] != 1)
7486fd
-      fprintf(stderr, "Missing list element %d\n", i);
7486fd
+      {
7486fd
+        fprintf(stderr, "Missing list element %d\n", i);
7486fd
+        abort();
7486fd
+      }
7486fd
 }
7486fd
 
7486fd
 volatile AO_t ops_performed = 0;
7486fd
@@ -218,6 +227,7 @@ int main(int argc, char **argv)
7486fd
           int code;
7486fd
           if ((code = pthread_join(thread[i], 0)) != 0) {
7486fd
             fprintf(stderr, "Thread join failed %u\n", code);
7486fd
+            abort();
7486fd
           }
7486fd
         }
7486fd
         times[nthreads][exper_n] = (unsigned long)(get_msecs() - start_time);