diff options
Diffstat (limited to 'csu')
-rw-r--r-- | csu/tst-atomic.c | 3 |
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; |