1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 18:56:02 +02:00

make sure to run tests with assertions enabled

This commit is contained in:
Michael Scharf 2007-10-09 14:58:09 +00:00
parent f3b468ac9d
commit 35bd7142e1
2 changed files with 12 additions and 4 deletions

View file

@ -1,7 +1,7 @@
#Fri Aug 03 17:25:20 CEST 2007
#Tue Oct 09 16:54:56 CEST 2007
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4
org.eclipse.jdt.core.compiler.compliance=1.4
org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
org.eclipse.jdt.core.compiler.source=1.3
org.eclipse.jdt.core.compiler.source=1.4

View file

@ -20,6 +20,14 @@ import org.eclipse.tm.terminal.model.StyleColor;
abstract public class AbstractITerminalTextDataTest extends TestCase {
abstract protected ITerminalTextData makeITerminalTextData();
protected void setUp() throws Exception {
try {
assert false;
throw new Error("make sure you run this code with assertions enabled (vmargs: -ea)");
} catch(AssertionError e) {
}
super.setUp();
}
protected String toSimple(ITerminalTextData term) {
return TerminalTextTestHelper.toSimple(term);
}