Skip to content

Commit 7b4e748

Browse files
committed
Skip tests that require semaphore support, which is not present right now.
1 parent b40b371 commit 7b4e748

File tree

5 files changed

+31
-1
lines changed

5 files changed

+31
-1
lines changed

conformance/interfaces/pthread_detach/1-2.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,12 @@ int main (int argc, char *argv[])
122122
{
123123
int ret=0;
124124
pthread_t child;
125-
125+
126+
#ifdef __EMSCRIPTEN__
127+
printf("Test SKIPPED: semaphores are not currently supported (TODO).\n");
128+
exit(0);
129+
#endif
130+
126131
output_init();
127132

128133
scenar_init();

conformance/interfaces/pthread_exit/6-2.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,17 @@
8585
/********************************************************************************************/
8686

8787
/* main is defined in the next file */
88+
#ifdef __EMSCRIPTEN__
89+
int main()
90+
{
91+
#ifdef __EMSCRIPTEN__
92+
printf("Test SKIPPED: semaphores are not currently supported (TODO).\n");
93+
exit(0);
94+
#endif
95+
}
96+
#else
8897
#define STD_MAIN
98+
#endif
8999
#include "threads_scenarii.c"
90100

91101
/* This file will define the following objects:

conformance/interfaces/pthread_mutex_init/1-2.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ int main(int argc, char *argv[])
173173
void * th_ret;
174174

175175
int i;
176+
177+
#ifdef __EMSCRIPTEN__
178+
printf("Test SKIPPED: semaphores are not currently supported (TODO).\n");
179+
exit(0);
180+
#endif
176181

177182
output_init();
178183

conformance/interfaces/pthread_mutex_init/3-2.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ int main(int argc, char *argv[])
178178
void * th_ret;
179179

180180
int i;
181+
182+
#ifdef __EMSCRIPTEN__
183+
printf("Test SKIPPED: semaphores are not currently supported (TODO).\n");
184+
exit(0);
185+
#endif
181186

182187
output_init();
183188
#if VERBOSE >1

conformance/interfaces/pthread_mutex_lock/4-1.c

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

146146
output_init();
147147

148+
#ifdef __EMSCRIPTEN__
149+
printf("Test SKIPPED: semaphores are not currently supported (TODO).\n");
150+
exit(0);
151+
#endif
152+
148153
#if VERBOSE >1
149154
output("Initialize the PTHREAD_MUTEX_RECURSIVE mutex\n");
150155
#endif

0 commit comments

Comments
 (0)