Skip to content

Commit 0b6b59b

Browse files
author
kr-2003
committed
skip tests for non-linux and non-darwin
1 parent ccd35e5 commit 0b6b59b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

clang/unittests/Interpreter/OutOfProcessInterpreterTests.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,14 @@ TEST_F(InterpreterTestBase, SanityWithRemoteExecution) {
134134
if (!HostSupportsJIT())
135135
GTEST_SKIP();
136136

137+
llvm::Triple SystemTriple(llvm::sys::getProcessTriple());
138+
139+
// FIXME: In the future, support more platforms beyond linux-x86_64 and macOS.
140+
if (!SystemTriple.isOSDarwin() && !SystemTriple.isOSLinux()) {
141+
GTEST_SKIP()
142+
<< "Out-of-process interpreter only supports linux-x86_64 and macos";
143+
}
144+
137145
std::unique_ptr<Interpreter> Interp = createInterpreterWithRemoteExecution();
138146

139147
using PTU = PartialTranslationUnit;

0 commit comments

Comments
 (0)