[llvm] [orc-rt] Fix regression test after 6506e7380c7f. (PR #225646)
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 23 02:02:28 PDT 2026
https://github.com/lhames created https://github.com/llvm/llvm-project/pull/225646
Fix typo, substitution issues.
>From ebc537fe183ad10bcf9c5e01eefdb7711290498d Mon Sep 17 00:00:00 2001
From: Lang Hames <lhames at gmail.com>
Date: Wed, 23 Sep 2026 18:59:52 +1000
Subject: [PATCH] [orc-rt] Fix regression test after 6506e7380c7f.
Fix typo, substitution issues.
---
orc-rt/test/regression/check-rt-process-info.test | 8 +++++---
orc-rt/test/regression/lit.cfg.py | 2 +-
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/orc-rt/test/regression/check-rt-process-info.test b/orc-rt/test/regression/check-rt-process-info.test
index d160f3d52ac04..fc56397f8690b 100644
--- a/orc-rt/test/regression/check-rt-process-info.test
+++ b/orc-rt/test/regression/check-rt-process-info.test
@@ -1,6 +1,8 @@
-# RUN: orc-rt-process-info-check --print-triple --print-page-size --print-cpu-features \
-# RUN: | FileCheck %s -DARCH=%host-arch -DOS=%host-os -DVERSION=%macos-product-version -DVERSION=%host-page-size
+# RUN: orc-rt-process-info-check --print-triple --print-page-size \
+# RUN: --print-cpu-features \
+# RUN: | FileCheck %s -DARCH=%host-arch -DOS=%host-os \
+# RUN: -DVERSION=%macos-product-version -DPAGESIZE=%host-page-size
# CHECK: [[ARCH]]-{{.*}}-[[OS]][[VERSION]]
-# CHECK-NEXT: [[host-page-size]]
+# CHECK-NEXT: [[PAGESIZE]]
# CHECK-NEXT: {{^\+[a-z0-9_.]+(,\+[a-z0-9_.]+)*$}}
diff --git a/orc-rt/test/regression/lit.cfg.py b/orc-rt/test/regression/lit.cfg.py
index a43aff5fe99cb..8c010d4fe2dc8 100644
--- a/orc-rt/test/regression/lit.cfg.py
+++ b/orc-rt/test/regression/lit.cfg.py
@@ -98,7 +98,7 @@ def add_logging_features():
# Add the page size from mmap this allows us to avoid another if statement as
# it would likely need ctypes for windows as it does not support sysconf
-config.substituions.append(("%host-page-size", mmap.PAGESIZE))
+config.substitutions.append(("%host-page-size", str(mmap.PAGESIZE)))
# Add host OS and arch substitutions for host-detection tests.
config.substitutions.append(("%host-arch", platform.machine()))
More information about the llvm-commits
mailing list