summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/tests/shtest-output-printing.py
diff options
context:
space:
mode:
authorHubert Tong <hubert.reinterpretcast@gmail.com>2019-05-01 15:47:16 +0000
committerHubert Tong <hubert.reinterpretcast@gmail.com>2019-05-01 15:47:16 +0000
commit66a9642f5672ed2e22efd722f662def6169f2b11 (patch)
treeb574b394917ceed3ed4adbc9cfd7583eb34d8396 /llvm/utils/lit/tests/shtest-output-printing.py
parent02d055a269823ebb4b00119db0c4d656cc3f8894 (diff)
downloadbcm5719-llvm-66a9642f5672ed2e22efd722f662def6169f2b11.tar.gz
bcm5719-llvm-66a9642f5672ed2e22efd722f662def6169f2b11.zip
[lit][tests][AIX] Update expected form of diagnostic messages; use `not` to normalize non-zero exit values
Summary: Various tests in the `lit` testing suite expect specific return codes and forms of diagnostic message from utility programs. As per POSIX.1-2017 XCU Section 1.4, Utility Description Defaults, "[the] format of diagnostic messages for most utilities is unspecified". The STDERR subsections of the `cat` and `wc` utilities merely indicate that "[the] standard error shall be used only for diagnostic messages". The corresponding EXIT STATUS subsections merely indicate, with regard to errors, an exit value of >0. The affected tests are updated to accept the applicable diagnostic message as produced by the utilities on AIX. The exit value is normalized using `not` as necessary. Reviewers: xingxue, sfertile, jasonliu Reviewed By: xingxue Subscribers: delcypher, jsji, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D60553 llvm-svn: 359690
Diffstat (limited to 'llvm/utils/lit/tests/shtest-output-printing.py')
-rw-r--r--llvm/utils/lit/tests/shtest-output-printing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/lit/tests/shtest-output-printing.py b/llvm/utils/lit/tests/shtest-output-printing.py
index 2344ef20036..80304258fd9 100644
--- a/llvm/utils/lit/tests/shtest-output-printing.py
+++ b/llvm/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
OpenPOWER on IntegriCloud