Skip to content

Commit

Permalink
Fix opt/invalid-target.ll on Windows bots
Browse files Browse the repository at this point in the history
On Windows the warning/error messages print opt.exe instead of opt, so
just drop this part of the check.
  • Loading branch information
arichardson committed Oct 26, 2023
1 parent 1e029cf commit 1f5a9d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/test/tools/opt/invalid-target.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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:

0 comments on commit 1f5a9d1

Please sign in to comment.