llvm.org GIT mirror llvm / 92bb381
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359690 91177308-0d34-0410-b5e6-96231b3b80d8 Hubert Tong 3 months ago
3 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
0 # RUN: true
11 # RUN: echo hi
2 # RUN: wc missing-file &> %t.out
2 # RUN: not not wc missing-file &> %t.out
1717 # CHECK-NEXT: line 2: failed test output on stdout
1818 # CHECK: Command Output (stderr):
1919 # CHECK-NEXT: --
20 # CHECK-NEXT: cat{{(\.exe)?}}: does-not-exist: No such file or directory
20 # CHECK-NEXT: cat{{(\.exe)?}}: {{cannot open does-not-exist|does-not-exist: No such file or directory}}
2121 # CHECK: --
2323 # CHECK: FAIL: shtest-format :: external_shell/fail_with_bad_encoding.txt
2323 # CHECK-NEXT: hi
2424 #
2525 # CHECK: $ ":" "RUN: at line 3"
26 # CHECK-NEXT: $ "wc" "missing-file"
26 # CHECK-NEXT: $ "not" "not" "wc" "missing-file"
2727 # CHECK-NEXT: # redirected output from '{{.*(/|\\\\)}}basic.txt.tmp.out':
28 # CHECK-NEXT: missing-file{{.*}} No such file or directory
28 # CHECK-NEXT: {{cannot open missing-file|missing-file.* No such file or directory}}
2929 # CHECK: note: command had no output on stdout or stderr
3030 # CHECK-NEXT: error: command failed with exit status: 1