-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Revert changes to llvm-string stdin test and XFAIL on AIX #160821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-llvm-binary-utilities Author: Mark Danial (madanial0) ChangesXfail testcase on AIX until echo -n bug is fixed, revert changes made to testcase Full diff: https://github.com/llvm/llvm-project/pull/160821.diff 1 Files Affected:
diff --git a/llvm/test/tools/llvm-strings/stdin.test b/llvm/test/tools/llvm-strings/stdin.test
index 3c60123ca8921..ef6cd131f5879 100644
--- a/llvm/test/tools/llvm-strings/stdin.test
+++ b/llvm/test/tools/llvm-strings/stdin.test
@@ -1,13 +1,13 @@
+; XFAIL: target={{.*}}-aix{{.*}}
+
## Show that llvm-strings can handle stdin input properly.
## Case 1: output with single string.
-RUN: echo -n "abcdefg" > %t
-RUN: llvm-strings %t - | FileCheck %s --check-prefix=CASE1 --implicit-check-not={{.}}
+RUN: echo -n "abcdefg" | llvm-strings - | FileCheck %s --check-prefix=CASE1 --implicit-check-not={{.}}
CASE1: abcdefg
## Case 2: output too short for string.
-RUN: echo -n "abc" > %t
-RUN: llvm-strings %t - | FileCheck %s --implicit-check-not={{.}} --allow-empty
+RUN: echo -n "abc" | llvm-strings - | FileCheck %s --implicit-check-not={{.}} --allow-empty
## Case 3: output with new line.
RUN: printf "abcd\nefgh" | llvm-strings - | FileCheck %s --check-prefix=CASE3 --implicit-check-not={{.}}
@@ -21,5 +21,4 @@ CASE4-NEXT: ghij
CASE4-NEXT: klmn
## Case 5: no file name specified is equivalent to explicitly requesting stdin.
-RUN: echo -n "abcdefg" > %t
-RUN: llvm-strings %t - | FileCheck %s --check-prefix=CASE1 --implicit-check-not={{.}}
+RUN: echo -n "abcdefg" | llvm-strings | FileCheck %s --check-prefix=CASE1 --implicit-check-not={{.}}
|
@@ -1,13 +1,13 @@ | |||
; XFAIL: target={{.*}}-aix{{.*}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't correct. It'll XFAIL the test if the AIX target is enabled, when it should be when the host system is AIX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but really the lit behaviour should be fixed.
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/155/builds/13353 Here is the relevant piece of the build log for the reference
|
Xfail testcase on AIX until echo -n bug is fixed, revert changes made to testcase
Xfail testcase on AIX until echo -n bug is fixed, revert changes made to testcase