Skip to content

Commit

Permalink
[lit] Fix a test fail under windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jdenny-ornl committed Sep 19, 2023
1 parent d13da15 commit aa71680
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions llvm/utils/lit/tests/shtest-run-at-line.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# Check that -a/-v/-vv makes the line number of the failing RUN command clear.

# RUN: not %{lit} -a %{inputs}/shtest-run-at-line | FileCheck %s
# RUN: not %{lit} -v %{inputs}/shtest-run-at-line | FileCheck %s
# RUN: not %{lit} -vv %{inputs}/shtest-run-at-line | FileCheck %s

# This diagnostic sometimes appears in windows when using bash as an external
# shell. Ignore it so we can strictly check the relevant output.
#
# DEFINE: %{filter} = \
# DEFINE: grep -v 'bash.exe: warning: could not find /tmp, please create!'

# RUN: not %{lit} -a %{inputs}/shtest-run-at-line | %{filter} | FileCheck %s
# RUN: not %{lit} -v %{inputs}/shtest-run-at-line | %{filter} | FileCheck %s
# RUN: not %{lit} -vv %{inputs}/shtest-run-at-line | %{filter} | FileCheck %s
# END.


Expand Down

0 comments on commit aa71680

Please sign in to comment.