summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-17 09:29:59 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-17 09:29:59 +0000
commit0d753ec30efbb3e738870bdef7ed8a6b81ac9978 (patch)
tree5ed154fc3838dde4df0906986dcf413995a9de1d /unittests
parent6db07eac953403c8218432300a9f4fb7afe3ba53 (diff)
downloadllvm-0d753ec30efbb3e738870bdef7ed8a6b81ac9978.tar.gz
llvm-0d753ec30efbb3e738870bdef7ed8a6b81ac9978.tar.bz2
llvm-0d753ec30efbb3e738870bdef7ed8a6b81ac9978.tar.xz
"XFAIL" the Split2 StringReft test with Apple gcc, which miscompiles it.
- I plan on fixing/workarounding this, but until then I'd like the bots to stay green. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89077 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/ADT/StringRefTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/unittests/ADT/StringRefTest.cpp b/unittests/ADT/StringRefTest.cpp
index dfa208abef..11545d539b 100644
--- a/unittests/ADT/StringRefTest.cpp
+++ b/unittests/ADT/StringRefTest.cpp
@@ -111,6 +111,11 @@ TEST(StringRefTest, Split) {
Str.rsplit('o'));
}
+// XFAIL for PR5482, StringRef is miscompiled by Apple gcc.
+#if (!defined(__llvm__) && defined(__APPLE__) && defined(__OPTIMIZE__))
+#define SKIP_SPLIT2
+#endif
+#ifndef SKIP_SPLIT2
TEST(StringRefTest, Split2) {
SmallVector<StringRef, 5> parts;
SmallVector<StringRef, 5> expected;
@@ -190,6 +195,7 @@ TEST(StringRefTest, Split2) {
StringRef("a,,b,c").split(parts, ",", 3, false);
EXPECT_TRUE(parts == expected);
}
+#endif
TEST(StringRefTest, StartsWith) {
StringRef Str("hello");