File tree Expand file tree Collapse file tree 8 files changed +52
-1
lines changed
conformance/interfaces/pthread_create Expand file tree Collapse file tree 8 files changed +52
-1
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,12 @@ int main (int argc, char *argv[])
155
155
void * rval ;
156
156
pthread_t child ;
157
157
int i ;
158
-
158
+
159
+ #ifdef __EMSCRIPTEN__
160
+ printf ("Test SKIPPED: semaphores are not currently supported (TODO).\n" );
161
+ exit (0 );
162
+ #endif
163
+
159
164
output_init ();
160
165
161
166
td .tid = pthread_self ();
Original file line number Diff line number Diff line change 91
91
/********************************************************************************************/
92
92
/*********************************** Test cases *****************************************/
93
93
/********************************************************************************************/
94
+ #ifdef __EMSCRIPTEN__
95
+ int main ()
96
+ {
97
+ printf ("Test SKIPPED: semaphores are not currently supported (TODO).\n" );
98
+ exit (0 );
99
+ }
100
+ #else
94
101
#define STD_MAIN /* This allows main() to be defined in the included file */
102
+ #endif
95
103
#include "threads_scenarii.c"
96
104
97
105
/* This file will define the following objects:
Original file line number Diff line number Diff line change 85
85
/********************************************************************************************/
86
86
/*********************************** Test cases *****************************************/
87
87
/********************************************************************************************/
88
+ #ifdef __EMSCRIPTEN__
89
+ int main ()
90
+ {
91
+ printf ("Test SKIPPED: semaphores are not currently supported (TODO).\n" );
92
+ exit (0 );
93
+ }
94
+ #else
88
95
#define STD_MAIN /* This allows main() to be defined in the included file */
96
+ #endif
89
97
90
98
#include "threads_scenarii.c"
91
99
Original file line number Diff line number Diff line change 48
48
#include <unistd.h>
49
49
#include <signal.h>
50
50
#include <errno.h>
51
+ #include <stdlib.h>
51
52
#include "posixtest.h"
52
53
53
54
int created_thread ; /* Flag indicating that the thread start routine was reached, and
@@ -96,6 +97,11 @@ int main()
96
97
pthread_attr_t inv_attr ;
97
98
struct sigaction act ;
98
99
100
+ #ifdef __EMSCRIPTEN__
101
+ printf ("Test SKIPPED: signals are not supported in Emscripten.\n" );
102
+ exit (0 );
103
+ #endif
104
+
99
105
/* Inializing flags. */
100
106
segfault_flag = 1 ;
101
107
created_thread = 0 ;
Original file line number Diff line number Diff line change @@ -255,6 +255,11 @@ int main (int argc, char * argv[])
255
255
pthread_t th_work , th_sig1 , th_sig2 ;
256
256
thestruct arg1 , arg2 ;
257
257
struct sigaction sa ;
258
+
259
+ #ifdef __EMSCRIPTEN__
260
+ printf ("Test SKIPPED: signals are not supported in Emscripten.\n" );
261
+ exit (0 );
262
+ #endif
258
263
259
264
/* Initialize output routine */
260
265
output_init ();
Original file line number Diff line number Diff line change 86
86
/*********************************** Test cases *****************************************/
87
87
/********************************************************************************************/
88
88
89
+ #ifdef __EMSCRIPTEN__
90
+ int main ()
91
+ {
92
+ printf ("Test SKIPPED: semaphores are not currently supported (TODO).\n" );
93
+ exit (0 );
94
+ }
95
+ #else
89
96
#define STD_MAIN
97
+ #endif
90
98
#include "threads_scenarii.c"
91
99
92
100
/* This file will define the following objects:
Original file line number Diff line number Diff line change 23
23
#include <pthread.h>
24
24
#include <stdio.h>
25
25
#include <signal.h>
26
+ #include <stdlib.h>
26
27
#include "posixtest.h"
27
28
28
29
sigset_t th_pendingset , th_sigmask ;
@@ -48,6 +49,11 @@ int main()
48
49
sigset_t main_sigmask , main_pendingset ;
49
50
int ret ;
50
51
52
+ #ifdef __EMSCRIPTEN__
53
+ printf ("Test SKIPPED: signals are not supported in Emscripten.\n" );
54
+ exit (0 );
55
+ #endif
56
+
51
57
/* Empty set of signal mask and blocked signals */
52
58
if ( (sigemptyset (& main_sigmask ) != 0 ) ||
53
59
(sigemptyset (& main_pendingset ) != 0 ) )
Original file line number Diff line number Diff line change @@ -140,6 +140,11 @@ int main (int argc, char *argv[])
140
140
141
141
testdata_t td_parent , td_thread ;
142
142
143
+ #ifdef __EMSCRIPTEN__
144
+ printf ("Test SKIPPED: signals are not supported in Emscripten.\n" );
145
+ exit (0 );
146
+ #endif
147
+
143
148
/* Initialize output routine */
144
149
output_init ();
145
150
You can’t perform that action at this time.
0 commit comments