The queued writers can always acquire the rwlock before the
queued readers when the held rwlock is released in glibc implementation,
so this test is unnecessary on glibc.

Signed-off-by: Wanlong Gao <[email protected]>
---
 .../conformance/interfaces/pthread_rwlock_unlock/3-1.c              | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/3-1.c
 
b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/3-1.c
index a47ebda..8254420 100644
--- 
a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/3-1.c
+++ 
b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/3-1.c
@@ -188,6 +188,12 @@ int main(void)
        return PTS_UNSUPPORTED;
 #endif
 
+#ifdef __GLIBC__
+       printf("The queued writers will always acquire rwlock before "
+               "queued readers in glibc implementation\n");
+       return PTS_UNTESTED;
+#endif
+
        int cnt = 0;
        pthread_t writer1, reader, writer2;
        int priority;
-- 
1.8.3.3.754.g9c3c367


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to