Skip to main content
summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorHansruedi Patzen2017-11-24 09:44:11 +0000
committerHansruedi Patzen2017-11-24 09:44:11 +0000
commit19b4848e08c13928c1bda7235c10e77e54edf98e (patch)
tree0fefe5154ba6d4c0699602c0995ecec9a2eb730a /core
parent93a5fcaa2a769c12f6ff805cf3cc53b8ecfab3bc (diff)
downloadorg.eclipse.cdt-19b4848e08c13928c1bda7235c10e77e54edf98e.tar.gz
org.eclipse.cdt-19b4848e08c13928c1bda7235c10e77e54edf98e.tar.xz
org.eclipse.cdt-19b4848e08c13928c1bda7235c10e77e54edf98e.zip
Bug 527709 - [Checker] Test suite fails on Windows
Change-Id: I70cf18245dc8dba14493f212c932ea08ae85a6cf Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core.tests/suite/org/eclipse/cdt/core/testplugin/util/BaseTestCase.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/suite/org/eclipse/cdt/core/testplugin/util/BaseTestCase.java b/core/org.eclipse.cdt.core.tests/suite/org/eclipse/cdt/core/testplugin/util/BaseTestCase.java
index d48b25666c1..911a9026579 100644
--- a/core/org.eclipse.cdt.core.tests/suite/org/eclipse/cdt/core/testplugin/util/BaseTestCase.java
+++ b/core/org.eclipse.cdt.core.tests/suite/org/eclipse/cdt/core/testplugin/util/BaseTestCase.java
@@ -73,6 +73,12 @@ public class BaseTestCase extends TestCase {
protected static final int GCC_MAJOR_VERSION_FOR_TESTS = 5;
protected static final int GCC_MINOR_VERSION_FOR_TESTS = 1;
+ /**
+ * This provides the systems new line separator. Use this if you do String comparisons in tests
+ * instead of hard coding '\n' or '\r\n' respectively.
+ */
+ protected static final String NL = System.getProperty("line.separator");
+
private boolean fExpectFailure;
private int fBugNumber;
private int fExpectedLoggedNonOK;

Back to the top