[PATCH] D67069: [llvm-strings][test] Merge two closely-related tests

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 2 04:44:15 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL370643: [llvm-strings][test] Merge two closely related tests (authored by jhenderson, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D67069?vs=218321&id=218332#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67069/new/

https://reviews.llvm.org/D67069

Files:
  llvm/trunk/test/tools/llvm-strings/eof-no-string.test
  llvm/trunk/test/tools/llvm-strings/eof.test


Index: llvm/trunk/test/tools/llvm-strings/eof.test
===================================================================
--- llvm/trunk/test/tools/llvm-strings/eof.test
+++ llvm/trunk/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: {{.}}
Index: llvm/trunk/test/tools/llvm-strings/eof-no-string.test
===================================================================
--- llvm/trunk/test/tools/llvm-strings/eof-no-string.test
+++ llvm/trunk/test/tools/llvm-strings/eof-no-string.test
@@ -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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67069.218332.patch
Type: text/x-patch
Size: 1231 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190902/7e2144f1/attachment.bin>


More information about the llvm-commits mailing list