Skip to content

Commit fa47840

Browse files
authored
Fix test_emcc_debug_files after #21099 (#21106)
1 parent 5b52e0a commit fa47840

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/test_other.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2701,10 +2701,9 @@ def test_emcc_debug_files(self):
27012701
self.run_process([EMCC, test_file('hello_world.c'), '-O' + str(opts)], stderr=PIPE)
27022702
if debug is None:
27032703
self.assertFalse(os.path.exists(self.canonical_temp_dir))
2704-
elif debug == '1':
2705-
self.assertExists(os.path.join(self.canonical_temp_dir, 'emcc-4-original.js'))
2706-
elif debug == '2':
2707-
self.assertExists(os.path.join(self.canonical_temp_dir, 'emcc-4-original.js'))
2704+
else:
2705+
print(sorted(os.listdir(self.canonical_temp_dir)))
2706+
self.assertExists(os.path.join(self.canonical_temp_dir, 'emcc-3-original.js'))
27082707

27092708
def test_debuginfo_line_tables_only(self):
27102709
def test(do_compile):

0 commit comments

Comments
 (0)