aboutsummaryrefslogtreecommitdiff
path: root/csu/tst-atomic.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-25 20:41:26 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-25 20:41:26 +0000
commit09402f5bc1d87787c84dbf75d41777c87b1ce40e (patch)
treed5be40f068434405ba1554389d73460fea0a1a0a /csu/tst-atomic.c
parent2a9ae45c3f89b4069e75c53f6dd32e8174b5cfd1 (diff)
downloadglibc-09402f5bc1d87787c84dbf75d41777c87b1ce40e.zip
glibc-09402f5bc1d87787c84dbf75d41777c87b1ce40e.tar.gz
glibc-09402f5bc1d87787c84dbf75d41777c87b1ce40e.tar.bz2
Update.
2003-03-25 Ulrich Drepper <drepper@redhat.com> * csu/tst-atomic.c: Adjust tests to what atomic_add_negative and atomic_add_zero were supposed to do. * include/atomic.h: Adjust atomic_add_negative and atomic_add_zero to x86 behavior. * sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*. This matches the new timer implementation. * sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust timer info for what the kernel provides these days. (struct sigevent): Add _tid field. Define SIGEV_THREAD_ID. * Versions.def (librt): Add GLIBC_2.3.3. * abilist/libpthread.abilist: Update for nptl.
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 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;