Disable unittests/ADT/BitVectorTest on PPC Darwin.
authorDale Johannesen <dalej@apple.com>
Tue, 9 Feb 2010 22:15:27 +0000 (22:15 +0000)
committerDale Johannesen <dalej@apple.com>
Tue, 9 Feb 2010 22:15:27 +0000 (22:15 +0000)
It fails with a release build only, for reasons
as yet unknown.  (If there's a better way to Xfail
things here let me know, doesn't seem to be any
prior art in unittests.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95700 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ADT/BitVectorTest.cpp
unittests/ADT/Makefile

index 534828192c0bff7aad0ad64261495330334a50d6..f04eb60179eb618bad352a467ac360d7bd46fa89 100644 (file)
@@ -7,6 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
+#ifndef XFAIL
 #include "llvm/ADT/BitVector.h"
 #include "gtest/gtest.h"
 
@@ -138,3 +139,4 @@ TEST(BitVectorTest, TrivialOperation) {
 }
 
 }
+#endif
index c56b951704901a3f567269570a6cffe3589fd201..fe0832894d32b7de11cbd7659cf13250751a8b70 100644 (file)
@@ -12,4 +12,12 @@ TESTNAME = ADT
 LINK_COMPONENTS := core support
 
 include $(LEVEL)/Makefile.config
+
+# Xfail BitVectorTest for now on PPC Darwin.  7598360.
+ifeq ($(ARCH),PowerPC)
+ifeq ($(TARGET_OS),Darwin)
+CPP.Flags += -DXFAIL
+endif
+endif
+
 include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest