[Runtime] Only enable the CompatibilityOverride test Mach-O/Apple.

rdar://problem/36997475
This commit is contained in:
Mike Ash
2018-03-29 17:18:45 -04:00
parent f8837c8d9a
commit cd0d075aad

View File

@@ -10,6 +10,8 @@
//
//===----------------------------------------------------------------------===//
#if defined(__APPLE__) && defined(__MACH__)
#include "../../stdlib/public/runtime/CompatibilityOverride.h"
#include "swift/Runtime/Casting.h"
#include "swift/Runtime/Metadata.h"
@@ -161,3 +163,5 @@ TEST_F(CompatibilityOverrideTest, test_swift_conformsToProtocol) {
auto Result = swift_conformsToProtocol(nullptr, nullptr);
ASSERT_EQ(Result, nullptr);
}
#endif