[clang] [Clang-Repl] Skip tests for non-linux and non-darwin platforms for out-of-process JIT (PR #153005)

Abhinav Kumar via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 11 06:31:37 PDT 2025


https://github.com/kr-2003 created https://github.com/llvm/llvm-project/pull/153005

None

>From 0b6b59b9252aa4b02563054041930bf195f105a2 Mon Sep 17 00:00:00 2001
From: kr-2003 <kumar.kr.abhinav at gmail.com>
Date: Mon, 11 Aug 2025 18:58:42 +0530
Subject: [PATCH] skip tests for non-linux and non-darwin

---
 .../Interpreter/OutOfProcessInterpreterTests.cpp          | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/clang/unittests/Interpreter/OutOfProcessInterpreterTests.cpp b/clang/unittests/Interpreter/OutOfProcessInterpreterTests.cpp
index 4d5ef5c70d135..1e261e786c2e8 100644
--- a/clang/unittests/Interpreter/OutOfProcessInterpreterTests.cpp
+++ b/clang/unittests/Interpreter/OutOfProcessInterpreterTests.cpp
@@ -134,6 +134,14 @@ TEST_F(InterpreterTestBase, SanityWithRemoteExecution) {
   if (!HostSupportsJIT())
     GTEST_SKIP();
 
+  llvm::Triple SystemTriple(llvm::sys::getProcessTriple());
+
+  // FIXME: In the future, support more platforms beyond linux-x86_64 and macOS.
+  if (!SystemTriple.isOSDarwin() && !SystemTriple.isOSLinux()) {
+    GTEST_SKIP()
+        << "Out-of-process interpreter only supports linux-x86_64 and macos";
+  }
+
   std::unique_ptr<Interpreter> Interp = createInterpreterWithRemoteExecution();
 
   using PTU = PartialTranslationUnit;



More information about the cfe-commits mailing list