Disable the JITTest.NoStubs test for Darwin PPC. It apparently doesn't implement
authorBill Wendling <isanbard@gmail.com>
Fri, 13 Nov 2009 21:58:54 +0000 (21:58 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 13 Nov 2009 21:58:54 +0000 (21:58 +0000)
emitFunctionStubAtAddr.

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

unittests/ExecutionEngine/JIT/JITTest.cpp

index 5dc6721fabc1a78c8d26955f47b54e3f6575c43d..14af0c62d24a52ec3d00e0c0cc3fdc458ca940c9 100644 (file)
@@ -458,6 +458,9 @@ TEST_F(JITTest, ModuleDeletion) {
             NumTablesDeallocated);
 }
 
+#if !defined(__APPLE__) ||                                              \
+  !(defined(__POWERPC__) || defined (__ppc__) ||                        \
+    defined(_POWER) || defined(_ARCH_PPC))
 typedef int (*FooPtr) ();
 
 TEST_F(JITTest, NoStubs) {
@@ -495,6 +498,7 @@ TEST_F(JITTest, NoStubs) {
 
   ASSERT_EQ(stubsBefore, RJMM->stubsAllocated);
 }
+#endif
 
 // This code is copied from JITEventListenerTest, but it only runs once for all
 // the tests in this directory.  Everything seems fine, but that's strange