Skip to content

Commit f402d79

Browse files
committed
Skip pthread_rwlock_unlock/3-1.c since Emscripten does not support thread prioritization.
1 parent 22a35f2 commit f402d79

File tree

1 file changed

+5
-0
lines changed
  • conformance/interfaces/pthread_rwlock_unlock

1 file changed

+5
-0
lines changed

conformance/interfaces/pthread_rwlock_unlock/3-1.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@ int main()
197197
pthread_t writer1, reader, writer2;
198198
int priority;
199199

200+
#ifdef __EMSCRIPTEN__
201+
printf("Test SKIPPED: musl/Emscripten does not support thread priorities, so cannot test rwlocking in priority order.\n");
202+
exit(0);
203+
#endif
204+
200205
/* main thread needs to have the highest priority*/
201206
priority = sched_get_priority_min(TRD_POLICY) + 3;
202207
set_priority(pthread_self(), TRD_POLICY, priority);

0 commit comments

Comments
 (0)