Generate right code to check that muted test is failed
This commit is contained in:
committed by
Zalim Bashorov
parent
cc6722ad78
commit
8c3d2872c3
+4
-1
@@ -83,11 +83,14 @@ public class SimpleTestMethodModel implements TestMethodModel {
|
|||||||
p.println(doTestMethodName, "(fileName);");
|
p.println(doTestMethodName, "(fileName);");
|
||||||
|
|
||||||
if (isIgnoredTarget(targetBackend, file)) {
|
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.popIndent();
|
||||||
p.println("}");
|
p.println("}");
|
||||||
p.println("catch (Throwable ignore) {");
|
p.println("catch (Throwable ignore) {");
|
||||||
|
p.pushIndent();
|
||||||
|
p.println("return;");
|
||||||
|
p.popIndent();
|
||||||
p.println("}");
|
p.println("}");
|
||||||
|
p.println("throw new AssertionError(\"Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.\");");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2004
-1002
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user