Skip to content

Commit 68abd5a

Browse files
committed
Revert test merge
1 parent a119845 commit 68abd5a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/test_other.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11946,7 +11946,7 @@ def update_and_print_diff(key, actual, expected):
1194611946
if total_output_size < total_expected_size:
1194711947
print(f'Hey amazing, overall generated code size was improved by {total_expected_size - total_output_size} bytes!')
1194811948
print('If this is expected, rerun the test with --rebaseline to update the expected sizes')
11949-
self.assertDictEqual(obtained_results, expected_results)
11949+
self.assertEqual(obtained_results, expected_results)
1195011950

1195111951
# Tests the library_c_preprocessor.js functionality.
1195211952
@crossplatform
@@ -12378,9 +12378,13 @@ def test_main_reads_params(self):
1237812378
# otherwise in such a trivial program).
1237912379
self.assertLess(no, 0.95 * yes)
1238012380

12381+
def test_small_js_flags(self):
12382+
self.emcc('browser_test_hello_world.c', '0', cflags=['-O3', '--closure=1', '-sINCOMING_MODULE_JS_API=[]', '-sENVIRONMENT=web', '--output-eol=linux'])
12383+
self.check_output_sizes('a.out.js')
12384+
1238112385
def test_INCOMING_MODULE_JS_API(self):
1238212386
def test(args):
12383-
self.run_process([EMCC, test_file('hello_world.c'), '-O3', '--closure=1', '-sENVIRONMENT=web', '--output-eol=linux'] + args)
12387+
self.run_process([EMCC, test_file('hello_world.c'), '-O3', '--closure=1', '-sENVIRONMENT=node,shell', '--output-eol=linux'] + args)
1238412388
for engine in config.JS_ENGINES:
1238512389
self.assertContained('hello, world!', self.run_js('a.out.js', engine=engine))
1238612390
return os.path.getsize('a.out.js')

0 commit comments

Comments
 (0)