Skip to content

Commit 25d2139

Browse files
authored
Skip core tests that do not apply to being tested in WASMFS mode (#25034)
1 parent 8e55b3d commit 25d2139

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_core.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5464,6 +5464,7 @@ def test_langinfo(self):
54645464

54655465
@no_modularize_instance('uses Module object directly')
54665466
@no_strict('TODO: Fails in -sSTRICT mode due to an unknown reason.')
5467+
@no_wasmfs('depends on FS.createLazyFile which WASMFS does not have')
54675468
def test_files(self):
54685469
# Use closure here, to test we don't break FS stuff
54695470
if '-O3' in self.cflags and self.is_wasm2js():
@@ -5808,6 +5809,7 @@ def test_istream(self):
58085809
self.set_setting('LINKABLE', linkable)
58095810
self.do_core_test('test_istream.cpp')
58105811

5812+
@no_wasmfs('depends on FS.makedev which WASMFS does not have')
58115813
def test_fs_base(self):
58125814
self.set_setting('DEFAULT_LIBRARY_FUNCS_TO_INCLUDE', ['$FS'])
58135815
self.add_pre_run(read_file(test_file('fs/test_fs_base.js')))
@@ -5895,6 +5897,7 @@ def test_fs_noderawfs_nofollow(self):
58955897
self.cflags += ['-lnodefs.js']
58965898
self.do_runf('fs/test_noderawfs_nofollow.c', 'success')
58975899

5900+
@no_wasmfs('depends on FS.trackingDelegate which WASMFS does not have')
58985901
def test_fs_trackingdelegate(self):
58995902
self.set_setting('FS_DEBUG')
59005903
self.do_run_in_out_file_test('fs/test_trackingdelegate.c')
@@ -6881,6 +6884,7 @@ def test_bullet(self, use_cmake):
68816884
@no_4gb('runs out of memory')
68826885
@is_slow_test
68836886
@crossplatform
6887+
@no_wasmfs('depends on MEMFS which WASMFS does not have')
68846888
def test_poppler(self):
68856889
# See https://github.com/emscripten-core/emscripten/issues/20757
68866890
self.cflags.extend(['-Wno-deprecated-declarations', '-Wno-nontrivial-memaccess'])
@@ -7164,6 +7168,7 @@ def test(args=None, asserts=False):
71647168
'files': (['-DUSE_FILES'],),
71657169
})
71667170
@no_modularize_instance('uses Module object directly')
7171+
@no_wasmfs('depends on MEMFS which WASMFS does not have')
71677172
def test_FS_exports(self, extra_args):
71687173
# these used to be exported, but no longer are by default
71697174
def test(output_prefix='', args=None, assert_returncode=0):
@@ -8633,6 +8638,7 @@ def test_memprof_requirements(self):
86338638
self.cflags += ['--memoryprofiler', '--js-library', 'lib.js']
86348639
self.do_runf('main.c', 'able to run memprof')
86358640

8641+
@no_wasmfs('depends on MEMFS which WASMFS does not have')
86368642
def test_fs_dict(self):
86378643
self.set_setting('FORCE_FILESYSTEM')
86388644
self.cflags += ['-lidbfs.js']
@@ -8651,6 +8657,7 @@ def test_fs_dict(self):
86518657
self.cflags += ['--pre-js', 'pre.js', '-sINCOMING_MODULE_JS_API=preRun']
86528658
self.do_run('int main() { return 0; }', 'object\nobject\nobject\nobject\nobject\nobject')
86538659

8660+
@no_wasmfs('depends on MEMFS which WASMFS does not have')
86548661
def test_fs_dict_none(self):
86558662
# if IDBFS and NODEFS are not enabled, they are not present.
86568663
self.set_setting('FORCE_FILESYSTEM')

0 commit comments

Comments
 (0)