Skip to content

Commit 9e665cb

Browse files
committed
include each header only once
1 parent d880526 commit 9e665cb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/test_other.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9364,13 +9364,11 @@ def test_standalone_system_headers(self):
93649364
inc = f'#include <{header}>\n__attribute__((weak)) int foo;\n'
93659365
if cxx_only:
93669366
create_file('a.cxx', inc)
9367-
create_file('b.cxx', inc)
9368-
self.run_process([EMXX, '-Werror', '-Wall', '-pedantic', 'a.cxx', 'b.cxx', '-E'], stdout=subprocess.DEVNULL)
9367+
self.run_process([EMXX, '-Werror', '-Wall', '-pedantic', 'a.cxx', '-E', '-o', 'a.i'])
93699368
else:
93709369
create_file('a.c', inc)
9371-
create_file('b.c', inc)
93729370
for std in ([], ['-std=c89']):
9373-
self.run_process([EMCC] + std + ['-Werror', '-Wall', '-pedantic', 'a.c', 'b.c', '-E'], stdout=subprocess.DEVNULL)
9371+
self.run_process([EMCC] + std + ['-Werror', '-Wall', '-pedantic', 'a.c', '-E', '-o', 'a.i'])
93749372

93759373
@is_slow_test
93769374
@parameterized({

0 commit comments

Comments
 (0)