Skip to content
This repository was archived by the owner on Feb 4, 2020. It is now read-only.

Commit 61e076c

Browse files
author
Simon Warta
committed
Fix testRequiredHeaderDisappears()
1 parent 20f302b commit 61e076c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

integrationtests.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,12 @@ def testRequiredHeaderDisappears(self):
324324
subprocess.check_call(compileCmd)
325325

326326
os.remove("info.h")
327-
subprocess.check_call(compileCmd)
327+
328+
# real compiler fails
329+
process = subprocess.Popen(compileCmd, stdout=subprocess.PIPE)
330+
stdout, _ = process.communicate()
331+
self.assertEqual(process.returncode, 2)
332+
self.assertTrue("C1083" in stdout.decode(clcache.CL_DEFAULT_CODEC))
328333

329334
# When a header included by another header becomes obsolete and disappers,
330335
# we must fall back to real compiler.

0 commit comments

Comments
 (0)