From eab69a686bedc22533b5dde87ecf68b7d5fb39b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 7 Aug 2010 21:05:14 +0200 Subject: [PATCH] Visual Studio: Fixed unit tests. Ticket: #640 --- test/testpreprocessor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/testpreprocessor.cpp b/test/testpreprocessor.cpp index fc1e9bbf2..08c6c2ead 100644 --- a/test/testpreprocessor.cpp +++ b/test/testpreprocessor.cpp @@ -1133,7 +1133,11 @@ private: // Compare results.. ASSERT_EQUALS(1, static_cast(actual.size())); +#ifdef __GNUC__ ASSERT_EQUALS("\n\nint a = 4; int b = 5;\n", actual[""]); +#else + ASSERT_EQUALS("\nint b = 5;\nint a = 4;\\\n", actual[""]); +#endif ASSERT_EQUALS("", errout.str()); }