Skip to content

Commit f1c557c

Browse files
test: enable pthread-related libc-tests (#560)
This change enables the pthread-related tests in the libc-test suite. The tests are enabled only for the `wasm32-wasip1-threads` target, which is the only target that supports threads at the moment. The following pthread tests are still disabled: - pthread_cancel-points.c - pthread_cancel.c - pthread_robust.c This is a preparative change for swiftwasm/swift#5598
1 parent 2504bcd commit f1c557c

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//! filter.py(TARGET_TRIPLE): wasm32-wasip1-threads
2+
//! add-flags.py(CFLAGS): -I.
3+
//! add-flags.py(LDFLAGS): -Wl,--import-memory,--export-memory,--shared-memory,--max-memory=1073741824
4+
//! add-flags.py(RUN): --wasi threads
5+
#include "build/download/libc-test/src/functional/pthread_cond.c"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//! filter.py(TARGET_TRIPLE): wasm32-wasip1-threads
2+
//! add-flags.py(CFLAGS): -I.
3+
//! add-flags.py(LDFLAGS): -Wl,--import-memory,--export-memory,--shared-memory,--max-memory=1073741824
4+
//! add-flags.py(RUN): --wasi threads
5+
#include "build/download/libc-test/src/functional/pthread_mutex.c"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//! filter.py(TARGET_TRIPLE): wasm32-wasip1-threads
2+
//! add-flags.py(CFLAGS): -I.
3+
//! add-flags.py(LDFLAGS): -Wl,--import-memory,--export-memory,--shared-memory,--max-memory=1073741824
4+
//! add-flags.py(RUN): --wasi threads
5+
#include "build/download/libc-test/src/functional/pthread_tsd.c"

0 commit comments

Comments
 (0)