@@ -5853,14 +5853,11 @@ def test_fs_stat_unnamed_file_descriptor(self):
5853
5853
@crossplatform
5854
5854
@with_all_fs
5855
5855
def test_fs_symlink_resolution (self ):
5856
- nodefs = '-DNODEFS' in self .emcc_args or '-DNODERAWFS' in self .emcc_args
5857
5856
if self .get_setting ('WASMFS' ):
5858
5857
self .set_setting ('FORCE_FILESYSTEM' )
5859
- if nodefs :
5860
- if WINDOWS :
5861
- self .skipTest ('No symlinks on Windows' )
5862
- if self .get_setting ('WASMFS' ):
5863
- self .skipTest ('NODEFS in WasmFS' )
5858
+ nodefs = '-DNODEFS' in self .emcc_args or '-DNODERAWFS' in self .emcc_args
5859
+ if nodefs and WINDOWS :
5860
+ self .skipTest ('No symlinks on Windows' )
5864
5861
self .do_runf ('fs/test_fs_symlink_resolution.c' , 'success' )
5865
5862
5866
5863
@with_all_fs
@@ -5907,11 +5904,8 @@ def test_sigaction_default(self, signal, exit_code, assert_identical):
5907
5904
@crossplatform
5908
5905
@with_all_fs
5909
5906
def test_unistd_access (self ):
5910
- nodefs = '-DNODEFS' in self .emcc_args or '-DNODERAWFS' in self .emcc_args
5911
5907
if self .get_setting ('WASMFS' ):
5912
5908
self .set_setting ('FORCE_FILESYSTEM' )
5913
- if nodefs :
5914
- self .skipTest ('NODEFS in WasmFS' )
5915
5909
# On windows we have slighly different output because we the same
5916
5910
# level of permissions are not available. For example, on windows
5917
5911
# its not possible have a file that is not readable, but writable.
@@ -5946,11 +5940,8 @@ def test_unistd_dup(self):
5946
5940
5947
5941
@with_all_fs
5948
5942
def test_unistd_truncate (self ):
5949
- nodefs = '-DNODEFS' in self .emcc_args or '-DNODERAWFS' in self .emcc_args
5950
5943
if self .get_setting ('WASMFS' ):
5951
5944
self .set_setting ('FORCE_FILESYSTEM' )
5952
- if nodefs :
5953
- self .skipTest ('TODO: NODEFS in WasmFS' )
5954
5945
if WINDOWS or os .geteuid () == 0 :
5955
5946
self .skipTest ('Root access invalidates this test by being able to write on readonly files' )
5956
5947
self .do_run_in_out_file_test ('unistd/truncate.c' )
@@ -5982,10 +5973,6 @@ def test_unistd_sysconf_phys_pages(self):
5982
5973
@no_windows ('https://github.com/emscripten-core/emscripten/issues/8882' )
5983
5974
@with_all_fs
5984
5975
def test_unistd_unlink (self ):
5985
- nodefs = '-DNODEFS' in self .emcc_args or '-DNODERAWFS' in self .emcc_args
5986
- if self .get_setting ('WASMFS' ) and nodefs :
5987
- self .skipTest ('NODEFS in WasmFS' )
5988
-
5989
5976
# symlinks on node.js on non-linux behave differently (e.g. on Windows they require administrative privileges)
5990
5977
# so skip testing those bits on that combination.
5991
5978
if '-DNODEFS' in self .emcc_args :
@@ -6035,8 +6022,6 @@ def test_unistd_symlink_on_nodefs(self):
6035
6022
@also_with_nodefs
6036
6023
def test_unistd_io (self ):
6037
6024
if self .get_setting ('WASMFS' ):
6038
- if '-DNODEFS' in self .emcc_args :
6039
- self .skipTest ('NODEFS in WasmFS' )
6040
6025
self .set_setting ('FORCE_FILESYSTEM' )
6041
6026
self .do_run_in_out_file_test ('unistd/io.c' )
6042
6027
0 commit comments