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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/csu/tst-atomic.c b/csu/tst-atomic.c
index cb6b6ba3d4..7a2e3d0865 100644
--- a/csu/tst-atomic.c
+++ b/csu/tst-atomic.c
@@ -130,7 +130,8 @@ do_test (void)
       ret = 1;
     }
 
-  if (atomic_increment_val (&mem) != 1)
+  mem = 2;
+  if (atomic_increment_val (&mem) != 3)
     {
       puts ("atomic_increment_val test failed");
       ret = 1;