[llvm] 1f5a9d1 - Fix opt/invalid-target.ll on Windows bots
Alex Richardson via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 26 14:32:39 PDT 2023
Author: Alex Richardson
Date: 2023-10-26T14:32:12-07:00
New Revision: 1f5a9d1d073bc0e566333b0758cadc465581ff9d
URL: https://github.com/llvm/llvm-project/commit/1f5a9d1d073bc0e566333b0758cadc465581ff9d
DIFF: https://github.com/llvm/llvm-project/commit/1f5a9d1d073bc0e566333b0758cadc465581ff9d.diff
LOG: Fix opt/invalid-target.ll on Windows bots
On Windows the warning/error messages print opt.exe instead of opt, so
just drop this part of the check.
Added:
Modified:
llvm/test/tools/opt/invalid-target.ll
Removed:
################################################################################
diff --git a/llvm/test/tools/opt/invalid-target.ll b/llvm/test/tools/opt/invalid-target.ll
index 67c9b3c2a0a47fc..e55a8a44126ac87 100644
--- a/llvm/test/tools/opt/invalid-target.ll
+++ b/llvm/test/tools/opt/invalid-target.ll
@@ -7,10 +7,10 @@
;; Using "unknown" as the architecture is explicitly allowed (but warns)
; RUN: opt -mtriple=unknown -S -passes=no-op-module -o /dev/null < %s 2>&1 | FileCheck %s --check-prefix=UNKNOWN
-; UNKNOWN: opt: warning: failed to infer data layout: unable to get target for 'unknown', see --version and --triple.
+; UNKNOWN: warning: failed to infer data layout: unable to get target for 'unknown', see --version and --triple.
;; However, any other invalid target triple should cause the tool to fail:
; RUN: not opt -mtriple=invalid -S -passes=no-op-module -o /dev/null < %s 2>&1 | FileCheck %s --check-prefix=INVALID
-; INVALID: opt: warning: failed to infer data layout: unable to get target for 'invalid', see --version and --triple.
-; INVALID-NEXT: opt: unrecognized architecture 'invalid' provided.
+; INVALID: warning: failed to infer data layout: unable to get target for 'invalid', see --version and --triple.
+; INVALID-NEXT: unrecognized architecture 'invalid' provided.
; INVALID-EMPTY:
More information about the llvm-commits
mailing list