summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/test/tools/llvm-strings/eof-no-string.test5
-rw-r--r--llvm/test/tools/llvm-strings/eof.test10
2 files changed, 8 insertions, 7 deletions
diff --git a/llvm/test/tools/llvm-strings/eof-no-string.test b/llvm/test/tools/llvm-strings/eof-no-string.test
deleted file mode 100644
index 2a4c29b9223..00000000000
--- a/llvm/test/tools/llvm-strings/eof-no-string.test
+++ /dev/null
@@ -1,5 +0,0 @@
-## Show that llvm-strings does not print the last string in the input if it is
-## too short and no unprintable character follows it.
-
-RUN: echo -n abc | llvm-strings - | FileCheck --allow-empty %s
-CHECK-NOT: abc
diff --git a/llvm/test/tools/llvm-strings/eof.test b/llvm/test/tools/llvm-strings/eof.test
index b3640590f18..19b5adc85ef 100644
--- a/llvm/test/tools/llvm-strings/eof.test
+++ b/llvm/test/tools/llvm-strings/eof.test
@@ -1,5 +1,11 @@
## Show that llvm-strings prints the last string in the input even if no
## unprintable character follows it.
-RUN: echo -n abcdefg | llvm-strings - | FileCheck %s
-CHECK: abcdefg
+RUN: echo -n abcdefg | llvm-strings - | FileCheck %s --check-prefix=PRINT
+PRINT: abcdefg
+
+## Show that llvm-strings does not print the last string in the input if it is
+## too short and no unprintable character follows it.
+
+RUN: echo -n abc | llvm-strings - | FileCheck --allow-empty %s --check-prefix=NOPRINT
+NOPRINT-NOT: {{.}}
OpenPOWER on IntegriCloud