summaryrefslogtreecommitdiff
path: root/nptl/tst-rwlock14.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-07-04 23:12:44 +0000
committerUlrich Drepper <drepper@redhat.com>2004-07-04 23:12:44 +0000
commit382054020099eb8d0350a305d3719f92317e7912 (patch)
tree7f9e7d60dcf41cfe4cc9a62d62468cebef62fefe /nptl/tst-rwlock14.c
parentfc2803cc4250fb556fac42fff1a13e0f3ed1c703 (diff)
Update.
2004-07-04 Matthew Reppert <arashi@kai.vm.bytemark.co.uk> * sysdeps/unix/sysv/linux/i386/glob64.c (glob64): Use libc_hidden_ver instead of libc_hidden_def.
Diffstat (limited to 'nptl/tst-rwlock14.c')
-rw-r--r--nptl/tst-rwlock14.c30
1 files changed, 29 insertions, 1 deletions
diff --git a/nptl/tst-rwlock14.c b/nptl/tst-rwlock14.c
index 4451a023f7..b9611a81f0 100644
--- a/nptl/tst-rwlock14.c
+++ b/nptl/tst-rwlock14.c
@@ -104,7 +104,7 @@ do_test (void)
result = 1;
}
- ts.tv_nsec = 2000000000;
+ ts.tv_nsec = 1000000000;
e = pthread_rwlock_timedrdlock (&r, &ts);
if (e == 0)
@@ -130,6 +130,34 @@ do_test (void)
result = 1;
}
+ ts.tv_nsec = 0x100001000LL;
+ if (ts.tv_nsec != 0x100001000LL)
+ ts.tv_nsec = 2000000000;
+
+ e = pthread_rwlock_timedrdlock (&r, &ts);
+ if (e == 0)
+ {
+ puts ("third rwlock_timedrdlock did not fail");
+ result = 1;
+ }
+ else if (e != EINVAL)
+ {
+ puts ("third rwlock_timedrdlock did not return EINVAL");
+ result = 1;
+ }
+
+ e = pthread_rwlock_timedrdlock (&r, &ts);
+ if (e == 0)
+ {
+ puts ("third rwlock_timedrdlock did not fail");
+ result = 1;
+ }
+ else if (e != EINVAL)
+ {
+ puts ("third rwlock_timedrdlock did not return EINVAL");
+ result = 1;
+ }
+
if (result == 0)
puts ("no bugs");