]> granicus.if.org Git - llvm/commitdiff
[llvm-strings][test] Merge two closely related tests
authorJames Henderson <jh7370@my.bristol.ac.uk>
Mon, 2 Sep 2019 11:42:30 +0000 (11:42 +0000)
committerJames Henderson <jh7370@my.bristol.ac.uk>
Mon, 2 Sep 2019 11:42:30 +0000 (11:42 +0000)
This is a follow-up to feedback on D66015.

Reviewed by: grimar

Differential Revision: https://reviews.llvm.org/D67069

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370643 91177308-0d34-0410-b5e6-96231b3b80d8

test/tools/llvm-strings/eof-no-string.test [deleted file]
test/tools/llvm-strings/eof.test

diff --git a/test/tools/llvm-strings/eof-no-string.test b/test/tools/llvm-strings/eof-no-string.test
deleted file mode 100644 (file)
index 2a4c29b..0000000
+++ /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
index b3640590f18702862cfc14d24d6ac3e668653d1f..19b5adc85ef0e4b1d84d5b2069727eae23f04c8d 100644 (file)
@@ -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: {{.}}