Generate right code to check that muted test is failed

This commit is contained in:
Zalim Bashorov
2016-11-15 17:12:09 +03:00
committed by Zalim Bashorov
parent cc6722ad78
commit 8c3d2872c3
2 changed files with 2008 additions and 1003 deletions
@@ -83,11 +83,14 @@ public class SimpleTestMethodModel implements TestMethodModel {
p.println(doTestMethodName, "(fileName);");
if (isIgnoredTarget(targetBackend, file)) {
p.println("throw new AssertionError(\"Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.\");");
p.popIndent();
p.println("}");
p.println("catch (Throwable ignore) {");
p.pushIndent();
p.println("return;");
p.popIndent();
p.println("}");
p.println("throw new AssertionError(\"Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.\");");
}
}
File diff suppressed because it is too large Load Diff