We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bc6f88 commit af549feCopy full SHA for af549fe
1 file changed
tests/lit/lit/formats/Cpp2RustTest.py
@@ -115,6 +115,9 @@ def fail(str, code = fail_code):
115
return lit.Test.XFAIL, ''
116
return fail('cpp2rust failed\n' + err)
117
118
+ if should_not_translate:
119
+ return fail('expected translation-fail but cpp2rust succeeded')
120
+
121
expected_file = self.getExpectedFile(filepath, model, fname)
122
if not os.path.exists(expected_file) and not replace_expected:
123
return fail('no expected file')
0 commit comments