OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0e2e7d
)
strings -t oxd tests
author
Ilya Kuzmich
<ilya.kuzmich@gmail.com>
Mon, 29 May 2017 14:57:09 +0000
(17:57 +0300)
committer
Rob Landley
<rob@landley.net>
Fri, 7 Jul 2017 21:27:56 +0000
(16:27 -0500)
tests/strings.test
patch
|
blob
|
history
diff --git
a/tests/strings.test
b/tests/strings.test
index
8becc2f
..
935d3bc
100644
(file)
--- a/
tests/strings.test
+++ b/
tests/strings.test
@@
-18,3
+18,8
@@
testing "-o, multiple strings" "strings -n3 -o input | sed 's/^ *//'" \
"1 foo\n7 bar\n" "\0foo\0b\0bar\n" ""
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"
+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