Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: {{.}} |