Skip to content

Commit 1f5a9d1

Browse files
committed
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.
1 parent 1e029cf commit 1f5a9d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/test/tools/opt/invalid-target.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
;; Using "unknown" as the architecture is explicitly allowed (but warns)
99
; RUN: opt -mtriple=unknown -S -passes=no-op-module -o /dev/null < %s 2>&1 | FileCheck %s --check-prefix=UNKNOWN
10-
; UNKNOWN: opt: warning: failed to infer data layout: unable to get target for 'unknown', see --version and --triple.
10+
; UNKNOWN: warning: failed to infer data layout: unable to get target for 'unknown', see --version and --triple.
1111

1212
;; However, any other invalid target triple should cause the tool to fail:
1313
; RUN: not opt -mtriple=invalid -S -passes=no-op-module -o /dev/null < %s 2>&1 | FileCheck %s --check-prefix=INVALID
14-
; INVALID: opt: warning: failed to infer data layout: unable to get target for 'invalid', see --version and --triple.
15-
; INVALID-NEXT: opt: unrecognized architecture 'invalid' provided.
14+
; INVALID: warning: failed to infer data layout: unable to get target for 'invalid', see --version and --triple.
15+
; INVALID-NEXT: unrecognized architecture 'invalid' provided.
1616
; INVALID-EMPTY:

0 commit comments

Comments
 (0)