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:
parent
f3b468ac9d
commit
35bd7142e1
2 changed files with 12 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue