File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -290,6 +290,11 @@ int main (int argc, char * argv[])
290
290
291
291
output_init ();
292
292
293
+ #ifdef __EMSCRIPTEN__
294
+ printf ("Test SKIPPED: signals are not supported in Emscripten.\n" );
295
+ exit (0 );
296
+ #endif
297
+
293
298
#ifdef WITH_SYNCHRO
294
299
#if VERBOSE > 1
295
300
output ("Running in synchronized mode\n" );
Original file line number Diff line number Diff line change @@ -149,7 +149,12 @@ int main()
149
149
int cnt = 0 ;
150
150
pthread_t rd_thread , wr_thread ;
151
151
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
+
153
158
/* main thread needs to have the highest priority*/
154
159
priority = sched_get_priority_min (TRD_POLICY ) + 2 ;
155
160
set_priority (pthread_self (), TRD_POLICY , priority );
Original file line number Diff line number Diff line change @@ -148,6 +148,11 @@ int main()
148
148
int cnt = 0 ;
149
149
pthread_t rd_thread , wr_thread ;
150
150
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
151
156
152
157
/* main thread needs to have the highest priority*/
153
158
priority = sched_get_priority_min (TRD_POLICY ) + 2 ;
You can’t perform that action at this time.
0 commit comments