//ignore in files now counts even if the 'ignore' comment is followed by more text (such as the explanation for why it is being ignored).

This commit is contained in:
Reinier Zwitserloot committed 2012-10-29 23:11:21 +01:00
1 parent d15d722872
commit 7bd3851f68
3 files changed
+5 -2

No files matched your search

+2 -1
View File
@@ -69,7 +69,8 @@ public abstract class AbstractRunTests {
StringReader r = new StringReader(expectedFile);
BufferedReader br = new BufferedReader(r);
if ("//ignore".equals(br.readLine())) return false;
String firstLine = br.readLine();
if (firstLine != null && firstLine.startsWith("//ignore")) return false;
compare(
file.getName(),
+1 -1
View File
@@ -131,6 +131,6 @@ public class DirectoryRunner extends Runner {
BufferedReader reader = new BufferedReader(new FileReader(file));
String line = reader.readLine();
reader.close();
return "//ignore".equals(line);
return line != null && line.startsWith("//ignore");
}
}
@@ -1,3 +1,5 @@
//ignore - This test fails, but, fixing it is going to take a long time and we don't have it in the planning. Having a failing test is very annoying for e.g. 'ant test'.
class DelegateRecursionOuterMost {
private final DelegateRecursionCenter center = new DelegateRecursionCenter();
@java.lang.SuppressWarnings("all")