summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2016-03-23 02:37:13 +0100
committerJan Vorlicek <janvorli@microsoft.com>2016-03-23 02:59:23 +0100
commit222021c9d733e0362a390f10ea5f007c9c2eae6c (patch)
tree9962d9a1d03e2c99c33f9f687cc7dc49cfd09cc3 /tests
parentf755ab7fadd9dc53e66bd86ce8909954b6d72485 (diff)
downloadcoreclr-222021c9d733e0362a390f10ea5f007c9c2eae6c.tar.gz
coreclr-222021c9d733e0362a390f10ea5f007c9c2eae6c.tar.bz2
coreclr-222021c9d733e0362a390f10ea5f007c9c2eae6c.zip
Fix some tests in the EHPatternTests on Unix
Two of the tests in this suite were failing on Unix due to the incorrect line endings generated to the trace output. The fix was to replace `"\r\n"` with Environment.NewLine. I've also removed the test from the list of disabled tests for Unix
Diffstat (limited to 'tests')
-rw-r--r--tests/src/baseservices/exceptions/unittests/EHPatternTests.cs2
-rw-r--r--tests/testsFailingOutsideWindows.txt1
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/src/baseservices/exceptions/unittests/EHPatternTests.cs b/tests/src/baseservices/exceptions/unittests/EHPatternTests.cs
index 93c44d7cc0..756569e6a2 100644
--- a/tests/src/baseservices/exceptions/unittests/EHPatternTests.cs
+++ b/tests/src/baseservices/exceptions/unittests/EHPatternTests.cs
@@ -27,7 +27,7 @@ public class Trace
public void WriteLine(string str)
{
_actual += str;
- _actual += "\r\n";
+ _actual += Environment.NewLine;
// Console.WriteLine(str);
}
diff --git a/tests/testsFailingOutsideWindows.txt b/tests/testsFailingOutsideWindows.txt
index 039c7841f2..e9a3bab1a7 100644
--- a/tests/testsFailingOutsideWindows.txt
+++ b/tests/testsFailingOutsideWindows.txt
@@ -1,4 +1,3 @@
-baseservices/exceptions/unittests/EHPatternTests/EHPatternTests.sh
baseservices/threading/paramthreadstart/ThreadStartString_1/ThreadStartString_1.sh
CoreMangLib/cti/system/multicastdelegate/MulticastDelegateCtor/MulticastDelegateCtor.sh
CoreMangLib/cti/system/runtime/interopservices/marshal/MarshalGetLastWin32Error_PSC/MarshalGetLastWin32Error_PSC.sh