Skip to content

Commit b5ff2de

Browse files
committed
Make pthread_cond_timedwait test fewer threads on Emscripten, since there is a fixed limit to pthread pool size. Add test pass prints.
1 parent 3070225 commit b5ff2de

File tree

2 files changed

+6
-0
lines changed
  • conformance/interfaces/pthread_cond_timedwait

2 files changed

+6
-0
lines changed

conformance/interfaces/pthread_cond_timedwait/2-5.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@
8989
#define VERBOSE 1
9090
#endif
9191

92+
#ifdef __EMSCRIPTEN__
93+
#define NTHREADS (30)
94+
#else
9295
#define NTHREADS (100)
96+
#endif
9397

9498
#ifndef WITHOUT_ALTCLK
9599
#define USE_ALTCLK /* make tests with MONOTONIC CLOCK if supported */
@@ -358,6 +362,7 @@ int main(int argc, char * argv[])
358362
} /* Proceed to next case */
359363

360364

365+
printf("Test PASS\n");
361366
PASSED;
362367
}
363368

conformance/interfaces/pthread_cond_timedwait/2-6.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ int main(int argc, char * argv[])
390390
ret = sem_destroy(&(data.semB));
391391
if (ret != 0) { UNRESOLVED(errno, "Sem destroy failed"); }
392392

393+
printf("Test PASS\n");
393394
PASSED;
394395
}
395396

0 commit comments

Comments
 (0)