Skip to content

Commit

Permalink
[llvm-strings][test] Merge two closely related tests
Browse files Browse the repository at this point in the history
This is a follow-up to feedback on D66015.

Reviewed by: grimar

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

llvm-svn: 370643
  • Loading branch information
jh7370 committed Sep 2, 2019
1 parent c3bdad8 commit 43e9ead
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 0 additions & 5 deletions llvm/test/tools/llvm-strings/eof-no-string.test

This file was deleted.

10 changes: 8 additions & 2 deletions 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: {{.}}

0 comments on commit 43e9ead

Please sign in to comment.