Fix dd tests so TEST_HOST passes. (Ubuntu's dd doesn't support hex values
and don't expect a specific error message, just that it errored.)
This commit is contained in:
parent
557ca7e55b
commit
7450ecd568
@ -13,8 +13,9 @@ opt="2>/dev/null"
|
||||
# Test suffixed number parsing; `count` is representative.
|
||||
testing "count=2" "dd if=input count=2 ibs=1 $opt" "hi" "high\n" ""
|
||||
testing "count= 2" "dd if=input 'count= 2' ibs=1 $opt" "hi" "high\n" ""
|
||||
testing "count=0x2" "dd if=input 'count=0x2' ibs=1 $opt" "hi" "high\n" ""
|
||||
testing "count=-2" "dd if=input 'count=-2' ibs=1 2>&1" "dd: invalid number '-2'\n" "" ""
|
||||
SKIP_HOST=1 testing "count=0x2" "dd if=input 'count=0x2' ibs=1 $opt" "hi" \
|
||||
"high\n" ""
|
||||
testing "count=-2" "dd if=input 'count=-2' ibs=1 2>/dev/null || echo errored" "errored\n" "" ""
|
||||
|
||||
testing "if=(file)" "dd if=input $opt" "I WANT\n" "I WANT\n" ""
|
||||
testing "of=(file)" "dd of=file $opt && cat file" "I WANT\n" "" "I WANT\n"
|
||||
|
Loading…
Reference in New Issue
Block a user