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