[sanitizers] Fixup to r266494; the Unit test should not run on Windows

The test is failing on Windows because we do not have a definition for
DemangleSwiftAndCXX nor DemangleCXXABI, which I am replacing, on Windows.

llvm-svn: 266499
This commit is contained in:
Anna Zaks 2016-04-16 00:32:16 +00:00
parent 500886841d
commit 8f8d3db940
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,7 @@ TEST(Symbolizer, ExtractTokenUpToDelimiter) {
InternalFree(token);
}
#if !SANITIZER_WINDOWS
TEST(Symbolizer, DemangleSwiftAndCXX) {
// Swift names are not demangled in default llvm build because Swift
// runtime is not linked in.
@ -64,5 +65,6 @@ TEST(Symbolizer, DemangleSwiftAndCXX) {
EXPECT_STREQ("foo", DemangleSwiftAndCXX("foo"));
EXPECT_STREQ("", DemangleSwiftAndCXX(""));
}
#endif
} // namespace __sanitizer