[llvm] Fix test added in #155148 work with Windows style path separators. (PR #155354)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 25 21:48:53 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-testing-tools

Author: None (dyung)

<details>
<summary>Changes</summary>

Should fix Windows build bot failures such as https://lab.llvm.org/buildbot/#/builders/46/builds/22281.

The test (and the followup fix in #<!-- -->155303) did not properly account for Windows style path separators.

---
Full diff: https://github.com/llvm/llvm-project/pull/155354.diff


1 Files Affected:

- (modified) llvm/utils/lit/tests/pass-test-update.py (+1-1) 


``````````diff
diff --git a/llvm/utils/lit/tests/pass-test-update.py b/llvm/utils/lit/tests/pass-test-update.py
index f23bce9838f35..00a4025be660e 100644
--- a/llvm/utils/lit/tests/pass-test-update.py
+++ b/llvm/utils/lit/tests/pass-test-update.py
@@ -13,7 +13,7 @@
 # CHECK: Traceback (most recent call last):
 # CHECK:   File {{.*}}, line {{.*}}, in {{.*}}
 # CHECK:     update_output = test_updater(result, test)
-# CHECK:   File "{{.*}}/should_not_run.py", line {{.*}}, in should_not_run
+# CHECK:   File "{{.*}}{{/|\\}}should_not_run.py", line {{.*}}, in should_not_run
 # CHECK:     raise Exception("this test updater should only run on failure")
 # CHECK: Exception: this test updater should only run on failure
 # CHECK: ********************

``````````

</details>


https://github.com/llvm/llvm-project/pull/155354


More information about the llvm-commits mailing list