[PATCH] D60553: [lit][tests][AIX] Update expected form of diagnostic messages; use `not` to normalize non-zero exit values
Hubert Tong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 1 08:46:03 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL359690: [lit][tests][AIX] Update expected form of diagnostic messages; use `not` to… (authored by hubert.reinterpretcast, committed by ).
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60553/new/
https://reviews.llvm.org/D60553
Files:
llvm/trunk/utils/lit/tests/Inputs/shtest-output-printing/basic.txt
llvm/trunk/utils/lit/tests/shtest-format.py
llvm/trunk/utils/lit/tests/shtest-output-printing.py
Index: llvm/trunk/utils/lit/tests/Inputs/shtest-output-printing/basic.txt
===================================================================
--- llvm/trunk/utils/lit/tests/Inputs/shtest-output-printing/basic.txt
+++ llvm/trunk/utils/lit/tests/Inputs/shtest-output-printing/basic.txt
@@ -1,3 +1,3 @@
# RUN: true
# RUN: echo hi
-# RUN: wc missing-file &> %t.out
+# RUN: not not wc missing-file &> %t.out
Index: llvm/trunk/utils/lit/tests/shtest-output-printing.py
===================================================================
--- llvm/trunk/utils/lit/tests/shtest-output-printing.py
+++ llvm/trunk/utils/lit/tests/shtest-output-printing.py
@@ -24,8 +24,8 @@
# CHECK-NEXT: hi
#
# CHECK: $ ":" "RUN: at line 3"
-# CHECK-NEXT: $ "wc" "missing-file"
+# CHECK-NEXT: $ "not" "not" "wc" "missing-file"
# CHECK-NEXT: # redirected output from '{{.*(/|\\\\)}}basic.txt.tmp.out':
-# CHECK-NEXT: missing-file{{.*}} No such file or directory
+# CHECK-NEXT: {{cannot open missing-file|missing-file.* No such file or directory}}
# CHECK: note: command had no output on stdout or stderr
# CHECK-NEXT: error: command failed with exit status: 1
Index: llvm/trunk/utils/lit/tests/shtest-format.py
===================================================================
--- llvm/trunk/utils/lit/tests/shtest-format.py
+++ llvm/trunk/utils/lit/tests/shtest-format.py
@@ -18,7 +18,7 @@
# CHECK-NEXT: line 2: failed test output on stdout
# CHECK: Command Output (stderr):
# CHECK-NEXT: --
-# CHECK-NEXT: cat{{(\.exe)?}}: does-not-exist: No such file or directory
+# CHECK-NEXT: cat{{(\.exe)?}}: {{cannot open does-not-exist|does-not-exist: No such file or directory}}
# CHECK: --
# CHECK: FAIL: shtest-format :: external_shell/fail_with_bad_encoding.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60553.197560.patch
Type: text/x-patch
Size: 1757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190501/548224cb/attachment.bin>
More information about the llvm-commits
mailing list