Opened 4 years ago
Closed 2 years ago
#16711 closed bug (invalid)
THR: Test FAILED - conformance/interfaces/pthread_rwlock_wrlock/3-1.test
Reported by: | cocobean | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | System/POSIX | Version: | R1/beta2 |
Keywords: | POSIX, pthreads, pthread_rwlock_wrlock | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
Test pthread_rwlock_wrlock(pthread_rwlock_t *rwlock)
It may fail if:
[EDEADLK] The current thread already owns the rwlock for writing or reading.
Steps:
1. Create and initialize an rwlock 2. Perform a write lock via pthread_rwlock_wrlock() 3. Perform a write lock _again_ with pthread_rwlock_wrlock without first unlocking rwlock() 4. Test if returns EDEADLK or not. Note the standard states "may" fail, so the test always passes even if 0 is returned.
Expected result: Test passed
Actual Result: Test runs (i.e. attempts/acquires write lock), then HANGS.
Tested on: Haiku hrev54815 x86 with Open POSIX Test Suite 1.5.2
Change History (2)
comment:1 by , 2 years ago
comment:2 by , 2 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Test fails on Linux - Please close this ticket.