Skip to content

Commit 33a37cc

Browse files
committed
Update include-what-you-use expected return code
Newer IWYU versions return exit code 1 for errors instead of 3. Updated expected return codes to match new behavior.
1 parent 8c3fb8d commit 33a37cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def generate_iwyu_tests(cls):
230230
""".format(
231231
cls.err_cpp
232232
).encode()
233-
iwyu_retcodes = [0, 0, 3, 3]
233+
iwyu_retcodes = [0, 0, 1, 1] # Newer iwyu returns 1 instead of 3 for errors
234234
iwyu_output = [b"", b"", iwyu_err_c, iwyu_err_cpp]
235235
scenarios = []
236236
for i in range(len(cls.files)):

0 commit comments

Comments
 (0)