Verify that inputs like 1,2,3abc,4 with trailing garbage after a
valid number are rejected.
Signed-off-by: WanBingjiang <wanbingjiang@webray.com.cn>
--- /dev/null
+bits: error: invalid bit list: 1,2,3abc,4
--- /dev/null
+1
\ No newline at end of file
$TS_CMD_BITS -g 50-100 75-150 >> "$TS_OUTPUT" 2>> "$TS_ERRLOG"
ts_finalize_subtest
+ts_init_subtest "parse-invalid"
+$TS_CMD_BITS -l 1,2,3abc,4 >> $TS_OUTPUT 2>> $TS_ERRLOG
+ts_finalize_subtest
+
ts_init_subtest "parse-grouped-mask"
$TS_CMD_BITS -l ,9000000,00000000,0c000000,00000000 >> "$TS_OUTPUT" 2>> "$TS_ERRLOG"
ts_finalize_subtest