@@ -971,7 +971,7 @@ def test_stack(self):
971
971
self .do_run_from_file (src , output )
972
972
973
973
def test_strings (self ):
974
- if Settings . USE_TYPED_ARRAYS != 2 : return self .skip ('musl libc needs ta2 ' )
974
+ if self . run_name . startswith ( 's_' ) : return self .skip ('This test requires linking to musl lib for sscanf. ' )
975
975
test_path = path_from_root ('tests' , 'core' , 'test_strings' )
976
976
src , output = (test_path + s for s in ('.in' , '.out' ))
977
977
@@ -3856,18 +3856,21 @@ def test_sscanf_2(self):
3856
3856
Pass: 0.000012 0.000012''' )
3857
3857
3858
3858
def test_sscanf_n (self ):
3859
+ if self .run_name .startswith ('s_' ): return self .skip ('This test requires linking to musl lib for sscanf.' )
3859
3860
test_path = path_from_root ('tests' , 'core' , 'test_sscanf_n' )
3860
3861
src , output = (test_path + s for s in ('.in' , '.out' ))
3861
3862
3862
3863
self .do_run_from_file (src , output )
3863
3864
3864
3865
def test_sscanf_whitespace (self ):
3866
+ if self .run_name .startswith ('s_' ): return self .skip ('This test requires linking to musl lib for sscanf.' )
3865
3867
test_path = path_from_root ('tests' , 'core' , 'test_sscanf_whitespace' )
3866
3868
src , output = (test_path + s for s in ('.in' , '.out' ))
3867
3869
3868
3870
self .do_run_from_file (src , output )
3869
3871
3870
3872
def test_sscanf_other_whitespace (self ):
3873
+ if self .run_name .startswith ('s_' ): return self .skip ('This test requires linking to musl lib for sscanf.' )
3871
3874
Settings .SAFE_HEAP = 0 # use i16s in printf
3872
3875
3873
3876
test_path = path_from_root ('tests' , 'core' , 'test_sscanf_other_whitespace' )
@@ -3876,6 +3879,7 @@ def test_sscanf_other_whitespace(self):
3876
3879
self .do_run_from_file (src , output )
3877
3880
3878
3881
def test_sscanf_3 (self ):
3882
+ if self .run_name .startswith ('s_' ): return self .skip ('This test requires linking to musl lib for sscanf.' )
3879
3883
# i64
3880
3884
if not Settings .USE_TYPED_ARRAYS == 2 : return self .skip ('64-bit sscanf only supported in ta2' )
3881
3885
@@ -3885,23 +3889,27 @@ def test_sscanf_3(self):
3885
3889
self .do_run_from_file (src , output )
3886
3890
3887
3891
def test_sscanf_4 (self ):
3892
+ if self .run_name .startswith ('s_' ): return self .skip ('This test requires linking to musl lib for sscanf.' )
3888
3893
test_path = path_from_root ('tests' , 'core' , 'test_sscanf_4' )
3889
3894
src , output = (test_path + s for s in ('.in' , '.out' ))
3890
3895
3891
3896
self .do_run_from_file (src , output )
3892
3897
3893
3898
def test_sscanf_5 (self ):
3899
+ if self .run_name .startswith ('s_' ): return self .skip ('This test requires linking to musl lib for sscanf.' )
3894
3900
test_path = path_from_root ('tests' , 'core' , 'test_sscanf_5' )
3895
3901
src , output = (test_path + s for s in ('.in' , '.out' ))
3896
3902
3897
3903
self .do_run_from_file (src , output )
3898
3904
3899
3905
def test_sscanf_6 (self ):
3906
+ if self .run_name .startswith ('s_' ): return self .skip ('This test requires linking to musl lib for sscanf.' )
3900
3907
test_path = path_from_root ('tests' , 'core' , 'test_sscanf_6' )
3901
3908
src , output = (test_path + s for s in ('.in' , '.out' ))
3902
3909
self .do_run_from_file (src , output )
3903
3910
3904
3911
def test_sscanf_skip (self ):
3912
+ if self .run_name .startswith ('s_' ): return self .skip ('This test requires linking to musl lib for sscanf.' )
3905
3913
if Settings .USE_TYPED_ARRAYS != 2 : return self .skip ("need ta2 for full i64" )
3906
3914
3907
3915
test_path = path_from_root ('tests' , 'core' , 'test_sscanf_skip' )
@@ -3910,12 +3918,14 @@ def test_sscanf_skip(self):
3910
3918
self .do_run_from_file (src , output )
3911
3919
3912
3920
def test_sscanf_caps (self ):
3921
+ if self .run_name .startswith ('s_' ): return self .skip ('This test requires linking to musl lib for sscanf.' )
3913
3922
test_path = path_from_root ('tests' , 'core' , 'test_sscanf_caps' )
3914
3923
src , output = (test_path + s for s in ('.in' , '.out' ))
3915
3924
3916
3925
self .do_run_from_file (src , output )
3917
3926
3918
3927
def test_sscanf_hex (self ):
3928
+ if self .run_name .startswith ('s_' ): return self .skip ('This test requires linking to musl lib for sscanf.' )
3919
3929
if Settings .USE_TYPED_ARRAYS != 2 : return self .skip ('requires ta2' )
3920
3930
3921
3931
test_path = path_from_root ('tests' , 'core' , 'test_sscanf_hex' )
@@ -3924,6 +3934,7 @@ def test_sscanf_hex(self):
3924
3934
self .do_run_from_file (src , output )
3925
3935
3926
3936
def test_sscanf_float (self ):
3937
+ if self .run_name .startswith ('s_' ): return self .skip ('This test requires linking to musl lib for sscanf.' )
3927
3938
test_path = path_from_root ('tests' , 'core' , 'test_sscanf_float' )
3928
3939
src , output = (test_path + s for s in ('.in' , '.out' ))
3929
3940
@@ -3935,6 +3946,7 @@ def test_langinfo(self):
3935
3946
self .do_run (src , expected , extra_emscripten_args = ['-H' , 'libc/langinfo.h' ])
3936
3947
3937
3948
def test_files (self ):
3949
+ if self .run_name .startswith ('s_' ): return self .skip ('This test requires linking to musl lib for sscanf.' )
3938
3950
self .banned_js_engines = [SPIDERMONKEY_ENGINE ] # closure can generate variables called 'gc', which pick up js shell stuff
3939
3951
if self .emcc_args is not None and '-O2' in self .emcc_args :
3940
3952
self .emcc_args += ['--closure' , '1' ] # Use closure here, to test we don't break FS stuff
0 commit comments