Skip to content

Commit 2c7e88f

Browse files
author
kr-2003
committed
Skip tests for non-linux and non-darwin from llvm#152562
1 parent 1ab73d1 commit 2c7e88f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang/unittests/Interpreter/OutOfProcessInterpreterTests.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ TEST_F(InterpreterTestBase, SanityWithRemoteExecution) {
137137
llvm::Triple SystemTriple(llvm::sys::getProcessTriple());
138138

139139
// FIXME: In the future, support more platforms beyond linux-x86_64 and macOS.
140-
if (!SystemTriple.isOSDarwin() && !SystemTriple.isOSLinux()) {
140+
if (!(SystemTriple.isOSDarwin() &&
141+
SystemTriple.getArch() == llvm::Triple::Darwin) &&
142+
!(SystemTriple.isOSLinux() &&
143+
SystemTriple.getArch() == llvm::Triple::x86_64)) {
141144
GTEST_SKIP()
142145
<< "Out-of-process interpreter only supports linux-x86_64 and macos";
143146
}

0 commit comments

Comments
 (0)