[llvm] [llvm][Instrumentor] Fix expected error message (PR #196540)
Kevin Sala Penades via llvm-commits
llvm-commits at lists.llvm.org
Fri May 8 07:03:47 PDT 2026
https://github.com/kevinsala created https://github.com/llvm/llvm-project/pull/196540
The test checks that passing the current directory for the stub runtime file path is detected an error. However, the specific error message depends on the OS.
>From e8c83cbbdc3c61ed6153ba110003ccb54db9a1c9 Mon Sep 17 00:00:00 2001
From: Kevin Sala <salapenades1 at llnl.gov>
Date: Fri, 8 May 2026 06:56:31 -0700
Subject: [PATCH] [llvm][Instrumentor] Fix expected error message
The test checks that passing the current directory for the stub runtime
file path is detected an error. However, the specific error message
depends on the OS.
---
llvm/test/Instrumentation/Instrumentor/generate_bad_rt.ll | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/test/Instrumentation/Instrumentor/generate_bad_rt.ll b/llvm/test/Instrumentation/Instrumentor/generate_bad_rt.ll
index 11b080b8b2e97..36c6c22a3a032 100644
--- a/llvm/test/Instrumentation/Instrumentor/generate_bad_rt.ll
+++ b/llvm/test/Instrumentation/Instrumentor/generate_bad_rt.ll
@@ -1,3 +1,3 @@
; RUN: not opt < %s -passes=instrumentor -instrumentor-read-config-file=%S/bad_rt_config.json 2>&1 | FileCheck %s --ignore-case
-; CHECK: error: failed to open instrumentor stub runtime file for writing: Is a directory
+; CHECK: error: failed to open instrumentor stub runtime file for writing: {{.*}}
More information about the llvm-commits
mailing list