Skip to content

Commit 5d07f3e

Browse files
committed
Skip test pthread_mutex_lock/3-1.c since Emscripten does not support signals.
1 parent f402d79 commit 5d07f3e

File tree

3 files changed

+16
-1
lines changed
  • conformance/interfaces

3 files changed

+16
-1
lines changed

conformance/interfaces/pthread_mutex_lock/3-1.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,11 @@ int main (int argc, char * argv[])
290290

291291
output_init();
292292

293+
#ifdef __EMSCRIPTEN__
294+
printf("Test SKIPPED: signals are not supported in Emscripten.\n");
295+
exit(0);
296+
#endif
297+
293298
#ifdef WITH_SYNCHRO
294299
#if VERBOSE >1
295300
output("Running in synchronized mode\n");

conformance/interfaces/pthread_rwlock_rdlock/2-1.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,12 @@ int main()
149149
int cnt = 0;
150150
pthread_t rd_thread, wr_thread;
151151
int priority;
152-
152+
153+
#ifdef __EMSCRIPTEN__
154+
printf("Test SKIPPED: musl/Emscripten does not support thread priorities, so cannot test rwlocking in priority order.\n");
155+
exit(0);
156+
#endif
157+
153158
/* main thread needs to have the highest priority*/
154159
priority = sched_get_priority_min(TRD_POLICY) + 2;
155160
set_priority(pthread_self(), TRD_POLICY, priority);

conformance/interfaces/pthread_rwlock_rdlock/2-2.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ int main()
148148
int cnt = 0;
149149
pthread_t rd_thread, wr_thread;
150150
int priority;
151+
152+
#ifdef __EMSCRIPTEN__
153+
printf("Test SKIPPED: musl/Emscripten does not support thread priorities, so cannot test rwlocking in priority order.\n");
154+
exit(0);
155+
#endif
151156

152157
/* main thread needs to have the highest priority*/
153158
priority = sched_get_priority_min(TRD_POLICY) + 2;

0 commit comments

Comments
 (0)