[llvm] [orc-rt] Prefix test tool output, update test. (PR #226862)

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 27 18:19:27 PDT 2026


https://github.com/lhames created https://github.com/llvm/llvm-project/pull/226862

Prefix the triple, page-size, and cpu-features lines of the orc-rt-process-info-check. The prefixes can be used to ensure that the test doesn't try to match patterns against the wrong lines.

Also relaxes the feature string check to allow an empty feature string.

>From 28c2f3a63317ccd5d2cbfb3a23da5f6aa6c8c132 Mon Sep 17 00:00:00 2001
From: Lang Hames <lhames at gmail.com>
Date: Mon, 28 Sep 2026 01:15:18 +0000
Subject: [PATCH] [orc-rt] Prefix test tool output, update test.

Prefix the triple, page-size, and cpu-features lines of the
orc-rt-process-info-check. The prefixes can be used to ensure that the
test doesn't try to match patterns against the wrong lines.

Also relaxes the feature string check to allow an empty feature string.
---
 .../jit-free-foundations/check-rt-process-info.test         | 6 +++---
 orc-rt/test/tools/orc-rt-process-info-check.cpp             | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/orc-rt/test/regression/jit-free-foundations/check-rt-process-info.test b/orc-rt/test/regression/jit-free-foundations/check-rt-process-info.test
index d8a07424045f56..6c22c83be0299c 100644
--- a/orc-rt/test/regression/jit-free-foundations/check-rt-process-info.test
+++ b/orc-rt/test/regression/jit-free-foundations/check-rt-process-info.test
@@ -3,6 +3,6 @@
 # RUN:   | FileCheck %s -DARCH=%host-arch -DOS=%host-os \
 # RUN:     -DVERSION=%macos-product-version -DPAGESIZE=%host-page-size
 
-# CHECK:      [[ARCH]]-{{.*}}-[[OS]][[VERSION]]
-# CHECK-NEXT: [[PAGESIZE]]
-# CHECK-NEXT: {{^\+[a-z0-9_.]+(,\+[a-z0-9_.]+)*$}}
+# CHECK:      triple: [[ARCH]]-{{.*}}-[[OS]][[VERSION]]
+# CHECK-NEXT: page-size: [[PAGESIZE]]
+# CHECK-NEXT: cpu-features: {{(\+[a-z0-9_.]+(,\+[a-z0-9_.]+)*)?$}}
diff --git a/orc-rt/test/tools/orc-rt-process-info-check.cpp b/orc-rt/test/tools/orc-rt-process-info-check.cpp
index d10eda598b3bf3..5d78f7493786b1 100644
--- a/orc-rt/test/tools/orc-rt-process-info-check.cpp
+++ b/orc-rt/test/tools/orc-rt-process-info-check.cpp
@@ -47,13 +47,13 @@ int main(int argc, char *argv[]) {
   }
 
   if (PrintTriple)
-    std::cout << EPI->targetTriple() << "\n";
+    std::cout << "triple: " << EPI->targetTriple() << "\n";
 
   if (PrintPageSize)
-    std::cout << EPI->pageSize() << "\n";
+    std::cout << "page-size: " << EPI->pageSize() << "\n";
 
   if (PrintCPUFeatures)
-    std::cout << EPI->targetCPUFeatures() << "\n";
+    std::cout << "cpu-features: " << EPI->targetCPUFeatures() << "\n";
 
   if (PrintTriple || PrintPageSize || PrintCPUFeatures)
     return 0;



More information about the llvm-commits mailing list