summaryrefslogtreecommitdiffstats
path: root/tests/expected/misc
diff options
context:
space:
mode:
authorYann Droneaud2010-03-31 16:51:52 +0200
committerKarel Zak2010-03-31 17:15:01 +0200
commita609340ed20f08d7afa8f1b52125130f3363b12c (patch)
tree0d1cc618a73726a283967c937339f3a755515235 /tests/expected/misc
parentbuild-sys: improved check for fallocate() (diff)
downloadkernel-qcow2-util-linux-a609340ed20f08d7afa8f1b52125130f3363b12c.tar.gz
kernel-qcow2-util-linux-a609340ed20f08d7afa8f1b52125130f3363b12c.tar.xz
kernel-qcow2-util-linux-a609340ed20f08d7afa8f1b52125130f3363b12c.zip
tests: added tests against strtosize
- test empty string, white spaces - test hexadecimal Signed-off-by: Yann Droneaud <yann@droneaud.fr>
Diffstat (limited to 'tests/expected/misc')
-rw-r--r--tests/expected/misc/strtosize7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/expected/misc/strtosize b/tests/expected/misc/strtosize
index b7cb24617..04a2d590c 100644
--- a/tests/expected/misc/strtosize
+++ b/tests/expected/misc/strtosize
@@ -21,3 +21,10 @@ test_strtosize: invalid size '-1' value
1TB : 1000000000000
1PB : 1000000000000000
1EB : 1000000000000000000
+test_strtosize: invalid size '' value
+test_strtosize: invalid size ' ' value
+ 1 : 1
+test_strtosize: invalid size '1 ' value
+ 0x0a : 10
+ 0xff00 : 65280
+ 0x80000000 : 2147483648