Skip to content

Commit

Permalink
Include size of worker.js in metadata test expectations. NFC (emscrip…
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 authored Apr 5, 2024
1 parent f0aa594 commit b47fc03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/other/metadce/test_metadce_minimal_pthreads.gzsize
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4894
6100
1 change: 1 addition & 0 deletions test/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -8353,6 +8353,7 @@ def run_metadce_test(self, filename, args=[], expected_exists=[], expected_not_e
gz_size = get_file_gzipped_size('a.out.js')
if '-pthread' in args:
js_size += os.path.getsize('a.out.worker.js')
gz_size += get_file_gzipped_size('a.out.worker.js')
js_size_file = expected_basename + '.jssize'
gz_size_file = expected_basename + '.gzsize'
self.check_expected_size_in_file('wasm', size_file, wasm_size)
Expand Down

0 comments on commit b47fc03

Please sign in to comment.