- test empty string, white spaces
- test hexadecimal
Signed-off-by: Yann Droneaud <yann@droneaud.fr>
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
$TS_HELPER_STRTOSIZE 1PB >> $TS_OUTPUT 2>&1
$TS_HELPER_STRTOSIZE 1EB >> $TS_OUTPUT 2>&1
+$TS_HELPER_STRTOSIZE "" >> $TS_OUTPUT 2>&1
+$TS_HELPER_STRTOSIZE " " >> $TS_OUTPUT 2>&1
+$TS_HELPER_STRTOSIZE " 1" >> $TS_OUTPUT 2>&1
+$TS_HELPER_STRTOSIZE "1 " >> $TS_OUTPUT 2>&1
+
+$TS_HELPER_STRTOSIZE 0x0a >> $TS_OUTPUT 2>&1
+$TS_HELPER_STRTOSIZE 0xff00 >> $TS_OUTPUT 2>&1
+$TS_HELPER_STRTOSIZE 0x80000000 >> $TS_OUTPUT 2>&1
+
ts_finalize