@@ -6811,7 +6811,6 @@ def test_poppler(self):
6811
6811
args = ['-scale-to' , '512' , 'paper.pdf' , 'filename' ])
6812
6812
6813
6813
@needs_make ('make' )
6814
- @no_wasm64 ('MEMORY64 does not yet support SJLJ' )
6815
6814
@is_slow_test
6816
6815
def test_openjpeg (self ):
6817
6816
def line_splitter (data ):
@@ -6853,6 +6852,7 @@ def line_splitter(data):
6853
6852
[Path ('codec/CMakeFiles/j2k_to_image.dir/index.c.o' ),
6854
6853
Path ('codec/CMakeFiles/j2k_to_image.dir/convert.c.o' ),
6855
6854
Path ('codec/CMakeFiles/j2k_to_image.dir/__/common/color.c.o' ),
6855
+ Path ('codec/CMakeFiles/j2k_to_image.dir/__/common/getopt.c.o' ),
6856
6856
Path ('bin/libopenjpeg.a' )],
6857
6857
configure = ['cmake' , '.' ],
6858
6858
# configure_args=['--enable-tiff=no', '--enable-jp3d=no', '--enable-png=no'],
@@ -6890,21 +6890,19 @@ def image_compare(output):
6890
6890
assert abs (true_mean - image_mean ) < 0.01 , [true_mean , image_mean ]
6891
6891
assert diff_mean < 0.01 , diff_mean
6892
6892
6893
- return output
6894
-
6895
6893
self .emcc_args += ['--minify=0' ] # to compare the versions
6896
6894
self .emcc_args += ['--pre-js' , 'pre.js' ]
6897
6895
6898
- self .do_runf ('third_party/openjpeg/codec/j2k_to_image.c' ,
6899
- 'Successfully generated' , # The real test for valid output is in image_compare
6900
- args = '-i image.j2k -o image.raw' .split (),
6901
- emcc_args = ['-sUSE_LIBPNG' ],
6902
- libraries = lib ,
6903
- includes = [test_file ('third_party/openjpeg/libopenjpeg' ),
6904
- test_file ('third_party/openjpeg/codec' ),
6905
- test_file ('third_party/openjpeg/common' ),
6906
- Path (self .get_build_dir (), 'third_party/openjpeg' )],
6907
- output_nicerizer = image_compare )
6896
+ output = self .do_runf ('third_party/openjpeg/codec/j2k_to_image.c' ,
6897
+ 'Successfully generated' , # The real test for valid output is in image_compare
6898
+ args = '-i image.j2k -o image.raw' .split (),
6899
+ emcc_args = ['-sUSE_LIBPNG' ],
6900
+ libraries = lib ,
6901
+ includes = [test_file ('third_party/openjpeg/libopenjpeg' ),
6902
+ test_file ('third_party/openjpeg/codec' ),
6903
+ test_file ('third_party/openjpeg/common' ),
6904
+ Path (self .get_build_dir (), 'third_party/openjpeg' )])
6905
+ image_compare ( output )
6908
6906
6909
6907
@also_with_standalone_wasm (impure = True )
6910
6908
@no_asan ('autodebug logging interferes with asan' )
0 commit comments