File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -444,7 +444,7 @@ jobs:
444
444
# note we do *not* build all libraries and freeze the cache; as we run
445
445
# only limited tests here, it's more efficient to build on demand
446
446
- run-tests :
447
- test_targets : " other.test_emcc_cflags other.test_stdin other.test_bad_triple core2.test_sse1 core2.test_ccall other.test_closure_externs other.test_binaryen_debug other.test_js_optimizer_parse_error other.test_output_to_nowhere other.test_emcc_dev_null other.test_cmake* other.test_system_include_paths other.test_emar_response_file core2.test_utf16 other.test_special_chars_in_arguments other.test_toolchain_profiler other.test_realpath_nodefs other.test_response_file_encoding"
447
+ test_targets : " other.test_emcc_cflags other.test_stdin other.test_bad_triple core2.test_sse1 core2.test_ccall other.test_closure_externs other.test_binaryen_debug other.test_js_optimizer_parse_error other.test_output_to_nowhere other.test_emcc_dev_null other.test_cmake* other.test_system_include_paths other.test_emar_response_file core2.test_utf16 other.test_special_chars_in_arguments other.test_toolchain_profiler other.test_realpath_nodefs other.test_response_file_encoding other.test_libc_progname "
448
448
test-mac :
449
449
executor : mac
450
450
environment :
Original file line number Diff line number Diff line change 6
6
*/
7
7
8
8
#include <assert.h>
9
+ #include <emscripten.h>
9
10
#include <stdio.h>
10
11
#include <string.h>
11
12
@@ -24,6 +25,11 @@ int main(void) {
24
25
/* Ensure the basename contains no path separator. */
25
26
assert (!strchr (__progname , '/' ));
26
27
28
+ if (EM_ASM_INT ({ return process .platform .startsWith ("win" ) })) {
29
+ // The rest of the test here assumes unix-style pathnames.
30
+ return 0 ;
31
+ }
32
+
27
33
/* Ensure the full path starts with the root directory. */
28
34
assert (* __progname_full == '/' );
29
35
You can’t perform that action at this time.
0 commit comments