Skip to content

Commit d880526

Browse files
committed
Use the -E flag (preprocess only) in test_standalone_system_headers
This test only checks header inclusion, so it doesn't need to link or even compile. This change makes this (still slow) test 5x faster.
1 parent bcdee39 commit d880526

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_other.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9365,12 +9365,12 @@ def test_standalone_system_headers(self):
93659365
if cxx_only:
93669366
create_file('a.cxx', inc)
93679367
create_file('b.cxx', inc)
9368-
self.run_process([EMXX, '-Werror', '-Wall', '-pedantic', 'a.cxx', 'b.cxx'])
9368+
self.run_process([EMXX, '-Werror', '-Wall', '-pedantic', 'a.cxx', 'b.cxx', '-E'], stdout=subprocess.DEVNULL)
93699369
else:
93709370
create_file('a.c', inc)
93719371
create_file('b.c', inc)
93729372
for std in ([], ['-std=c89']):
9373-
self.run_process([EMCC] + std + ['-Werror', '-Wall', '-pedantic', 'a.c', 'b.c'])
9373+
self.run_process([EMCC] + std + ['-Werror', '-Wall', '-pedantic', 'a.c', 'b.c', '-E'], stdout=subprocess.DEVNULL)
93749374

93759375
@is_slow_test
93769376
@parameterized({

0 commit comments

Comments
 (0)