about summary refs log tree commit diff
path: root/csu/tst-atomic.c
diff options
context:
space:
mode:
Diffstat (limited to 'csu/tst-atomic.c')
-rw-r--r--csu/tst-atomic.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/csu/tst-atomic.c b/csu/tst-atomic.c
index 292f6e7334..e5686e377d 100644
--- a/csu/tst-atomic.c
+++ b/csu/tst-atomic.c
@@ -178,9 +178,9 @@ do_test (void)
       ret = 1;
     }
 
-  mem = -10;
-  if (! atomic_add_negative (&mem, 12)
-      || mem != 2)
+  mem = -12;
+  if (! atomic_add_negative (&mem, 10)
+      || mem != -2)
     {
       puts ("atomic_add_negative test 1 failed");
       ret = 1;
@@ -210,9 +210,9 @@ do_test (void)
       ret = 1;
     }
 
-  mem = 0;
+  mem = -36;
   if (! atomic_add_zero (&mem, 36)
-      || mem != 36)
+      || mem != 0)
     {
       puts ("atomic_add_zero test 2 failed");
       ret = 1;