@@ -6811,7 +6811,6 @@ def test_poppler(self):
68116811 args = ['-scale-to' , '512' , 'paper.pdf' , 'filename' ])
68126812
68136813 @needs_make ('make' )
6814- @no_wasm64 ('MEMORY64 does not yet support SJLJ' )
68156814 @is_slow_test
68166815 def test_openjpeg (self ):
68176816 def line_splitter (data ):
@@ -6853,6 +6852,7 @@ def line_splitter(data):
68536852 [Path ('codec/CMakeFiles/j2k_to_image.dir/index.c.o' ),
68546853 Path ('codec/CMakeFiles/j2k_to_image.dir/convert.c.o' ),
68556854 Path ('codec/CMakeFiles/j2k_to_image.dir/__/common/color.c.o' ),
6855+ Path ('codec/CMakeFiles/j2k_to_image.dir/__/common/getopt.c.o' ),
68566856 Path ('bin/libopenjpeg.a' )],
68576857 configure = ['cmake' , '.' ],
68586858 # configure_args=['--enable-tiff=no', '--enable-jp3d=no', '--enable-png=no'],
@@ -6890,21 +6890,19 @@ def image_compare(output):
68906890 assert abs (true_mean - image_mean ) < 0.01 , [true_mean , image_mean ]
68916891 assert diff_mean < 0.01 , diff_mean
68926892
6893- return output
6894-
68956893 self .emcc_args += ['--minify=0' ] # to compare the versions
68966894 self .emcc_args += ['--pre-js' , 'pre.js' ]
68976895
6898- self .do_runf ('third_party/openjpeg/codec/j2k_to_image.c' ,
6896+ output = self .do_runf ('third_party/openjpeg/codec/j2k_to_image.c' ,
68996897 'Successfully generated' , # The real test for valid output is in image_compare
69006898 args = '-i image.j2k -o image.raw' .split (),
69016899 emcc_args = ['-sUSE_LIBPNG' ],
69026900 libraries = lib ,
69036901 includes = [test_file ('third_party/openjpeg/libopenjpeg' ),
69046902 test_file ('third_party/openjpeg/codec' ),
69056903 test_file ('third_party/openjpeg/common' ),
6906- Path (self .get_build_dir (), 'third_party/openjpeg' )],
6907- output_nicerizer = image_compare )
6904+ Path (self .get_build_dir (), 'third_party/openjpeg' )])
6905+ image_compare ( output )
69086906
69096907 @also_with_standalone_wasm (impure = True )
69106908 @no_asan ('autodebug logging interferes with asan' )
0 commit comments