aboutsummaryrefslogtreecommitdiff
path: root/csu
diff options
context:
space:
mode:
Diffstat (limited to 'csu')
-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 292f6e7..e5686e3 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;