diff options
author | Rob Landley <rob@landley.net> | 2017-07-07 16:36:45 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-07-07 16:36:45 -0500 |
commit | 61d0115171681e63366e1321c03ba0ad2d904f6f (patch) | |
tree | 7adae9c97fdfdc8c47e2a28e29db65791c2b7ea4 | |
parent | 1ae3703a9faa7165ebc46dbf80895971ca64a004 (diff) | |
download | toybox-61d0115171681e63366e1321c03ba0ad2d904f6f.tar.gz |
Posix says strings should only output hits that end with NUL or newline.
We don't currently do that, but a test suite checking that we don't
do that is requiring us to violate posix to pass it.
-rw-r--r-- | tests/strings.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/strings.test b/tests/strings.test index 935d3bca..1a9a8826 100644 --- a/tests/strings.test +++ b/tests/strings.test @@ -19,7 +19,7 @@ testing "-o, multiple strings" "strings -n3 -o input | sed 's/^ *//'" \ testing "-fo" "strings -fo input | sed 's/: */: /'" "input: 6 foobar\n" \ "\0\0\0\0\0\0foobar\n" "" -OFFSET_10="\0\0\0\0\0\0\0\0\0\0foobar" +OFFSET_10="\0\0\0\0\0\0\0\0\0\0foobar\n" testing "-t o" "strings -t o | sed 's/^ *//'" "12 foobar\n" "" $OFFSET_10 testing "-t d" "strings -t d | sed 's/^ *//'" "10 foobar\n" "" $OFFSET_10 testing "-t x" "strings -t x | sed 's/^ *//'" "a foobar\n" "" $OFFSET_10 |