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

>From 0b6b59b9252aa4b02563054041930bf195f105a2 Mon Sep 17 00:00:00 2001
From: kr-2003 <kumar.kr.abhi...@gmail.com>
Date: Mon, 11 Aug 2025 18:58:42 +0530
Subject: [PATCH 1/2] 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;

>From 952fef6fb396acc857a6d110c813c037fb46971e Mon Sep 17 00:00:00 2001
From: kr-2003 <kumar.kr.abhi...@gmail.com>
Date: Mon, 11 Aug 2025 18:58:42 +0530
Subject: [PATCH 2/2] Skip tests for non-linux and non-darwin from llvm#152562

---
 .../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;

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to