1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

[AIX] Skip unsupported ORC JIT RemoteObjectLayerTest on AIX

Summary:
Currently the XCOFF backend does not support writing 64-bit object
files, which the ORC JIT tests will try to exercise if we are on AIX. This patch
selectively disables the tests on AIX for now.

Reviewers: hubert.reinterpretcast, jasonliu, DiggerLin, stevewan, lhames

Reviewed By: hubert.reinterpretcast, lhames

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78813
This commit is contained in:
David Tenty 2020-05-01 15:48:21 -04:00
parent 5cf24eb9b3
commit 485cb308d9

View File

@ -16,6 +16,19 @@
using namespace llvm; using namespace llvm;
using namespace llvm::orc; using namespace llvm::orc;
// Writing 64-bit XCOFF isn't supported yet, so we need to disable some tests on
// AIX till it is.
#ifdef _AIX
#define SKIPTEST_IF_UNSUPPORTED() \
do { \
return; \
} while (false)
#else
#define SKIPTEST_IF_UNSUPPORTED() \
do { \
} while (false)
#endif
namespace { namespace {
class MockObjectLayer { class MockObjectLayer {
@ -109,6 +122,7 @@ MockObjectLayer::ObjectPtr createTestObject() {
} }
TEST(RemoteObjectLayer, AddObject) { TEST(RemoteObjectLayer, AddObject) {
SKIPTEST_IF_UNSUPPORTED();
llvm::orc::rpc::registerStringError<rpc::RawByteChannel>(); llvm::orc::rpc::registerStringError<rpc::RawByteChannel>();
auto TestObject = createTestObject(); auto TestObject = createTestObject();
if (!TestObject) if (!TestObject)
@ -166,6 +180,7 @@ TEST(RemoteObjectLayer, AddObject) {
} }
TEST(RemoteObjectLayer, AddObjectFailure) { TEST(RemoteObjectLayer, AddObjectFailure) {
SKIPTEST_IF_UNSUPPORTED();
llvm::orc::rpc::registerStringError<rpc::RawByteChannel>(); llvm::orc::rpc::registerStringError<rpc::RawByteChannel>();
auto TestObject = createTestObject(); auto TestObject = createTestObject();
if (!TestObject) if (!TestObject)
@ -221,6 +236,7 @@ TEST(RemoteObjectLayer, AddObjectFailure) {
TEST(RemoteObjectLayer, RemoveObject) { TEST(RemoteObjectLayer, RemoveObject) {
SKIPTEST_IF_UNSUPPORTED();
llvm::orc::rpc::registerStringError<rpc::RawByteChannel>(); llvm::orc::rpc::registerStringError<rpc::RawByteChannel>();
auto TestObject = createTestObject(); auto TestObject = createTestObject();
if (!TestObject) if (!TestObject)
@ -268,6 +284,7 @@ TEST(RemoteObjectLayer, RemoveObject) {
} }
TEST(RemoteObjectLayer, RemoveObjectFailure) { TEST(RemoteObjectLayer, RemoveObjectFailure) {
SKIPTEST_IF_UNSUPPORTED();
llvm::orc::rpc::registerStringError<rpc::RawByteChannel>(); llvm::orc::rpc::registerStringError<rpc::RawByteChannel>();
auto TestObject = createTestObject(); auto TestObject = createTestObject();
if (!TestObject) if (!TestObject)
@ -324,6 +341,7 @@ TEST(RemoteObjectLayer, RemoveObjectFailure) {
} }
TEST(RemoteObjectLayer, FindSymbol) { TEST(RemoteObjectLayer, FindSymbol) {
SKIPTEST_IF_UNSUPPORTED();
llvm::orc::rpc::registerStringError<rpc::RawByteChannel>(); llvm::orc::rpc::registerStringError<rpc::RawByteChannel>();
auto TestObject = createTestObject(); auto TestObject = createTestObject();
if (!TestObject) if (!TestObject)
@ -406,6 +424,7 @@ TEST(RemoteObjectLayer, FindSymbol) {
} }
TEST(RemoteObjectLayer, FindSymbolIn) { TEST(RemoteObjectLayer, FindSymbolIn) {
SKIPTEST_IF_UNSUPPORTED();
llvm::orc::rpc::registerStringError<rpc::RawByteChannel>(); llvm::orc::rpc::registerStringError<rpc::RawByteChannel>();
auto TestObject = createTestObject(); auto TestObject = createTestObject();
if (!TestObject) if (!TestObject)
@ -484,6 +503,7 @@ TEST(RemoteObjectLayer, FindSymbolIn) {
} }
TEST(RemoteObjectLayer, EmitAndFinalize) { TEST(RemoteObjectLayer, EmitAndFinalize) {
SKIPTEST_IF_UNSUPPORTED();
llvm::orc::rpc::registerStringError<rpc::RawByteChannel>(); llvm::orc::rpc::registerStringError<rpc::RawByteChannel>();
auto TestObject = createTestObject(); auto TestObject = createTestObject();
if (!TestObject) if (!TestObject)
@ -532,6 +552,7 @@ TEST(RemoteObjectLayer, EmitAndFinalize) {
} }
TEST(RemoteObjectLayer, EmitAndFinalizeFailure) { TEST(RemoteObjectLayer, EmitAndFinalizeFailure) {
SKIPTEST_IF_UNSUPPORTED();
llvm::orc::rpc::registerStringError<rpc::RawByteChannel>(); llvm::orc::rpc::registerStringError<rpc::RawByteChannel>();
auto TestObject = createTestObject(); auto TestObject = createTestObject();
if (!TestObject) if (!TestObject)