[llvm] r370643 - [llvm-strings][test] Merge two closely related tests

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 2 04:42:30 PDT 2019


Author: jhenderson
Date: Mon Sep  2 04:42:30 2019
New Revision: 370643

URL: http://llvm.org/viewvc/llvm-project?rev=370643&view=rev
Log:
[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

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

Removed: llvm/trunk/test/tools/llvm-strings/eof-no-string.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-strings/eof-no-string.test?rev=370642&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-strings/eof-no-string.test (original)
+++ llvm/trunk/test/tools/llvm-strings/eof-no-string.test (removed)
@@ -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

Modified: llvm/trunk/test/tools/llvm-strings/eof.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-strings/eof.test?rev=370643&r1=370642&r2=370643&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-strings/eof.test (original)
+++ llvm/trunk/test/tools/llvm-strings/eof.test Mon Sep  2 04:42:30 2019
@@ -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: {{.}}




More information about the llvm-commits mailing list