From 277b2b47c0fa5e22fd6f89665cc6a57b557df60a Mon Sep 17 00:00:00 2001 From: James Henderson Date: Mon, 2 Sep 2019 11:42:30 +0000 Subject: [PATCH] [llvm-strings][test] Merge two closely related tests This is a follow-up to feedback on D66015. Reviewed by: grimar Differential Revision: https://reviews.llvm.org/D67069 llvm-svn: 370643 --- test/tools/llvm-strings/eof-no-string.test | 5 ----- test/tools/llvm-strings/eof.test | 10 ++++++++-- 2 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 test/tools/llvm-strings/eof-no-string.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 index 2a4c29b9223..00000000000 --- a/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/test/tools/llvm-strings/eof.test b/test/tools/llvm-strings/eof.test index b3640590f18..19b5adc85ef 100644 --- a/test/tools/llvm-strings/eof.test +++ b/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: {{.}}