diff options
author | Rob Landley <rob@landley.net> | 2017-07-07 03:43:24 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-07-07 03:43:24 -0500 |
commit | 7450ecd568e94e9bdde01afc3b60dc953a12bdc1 (patch) | |
tree | fdbfcd63b7ea7acc60f5ec93abc1e77f1bc9a2a8 /tests | |
parent | 557ca7e55b7ca5c1e91b628440fe17cb9bb81c63 (diff) | |
download | toybox-7450ecd568e94e9bdde01afc3b60dc953a12bdc1.tar.gz |
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.)
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/dd.test | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/dd.test b/tests/dd.test index 9da2108c..1ab06d45 100755 --- a/tests/dd.test +++ b/tests/dd.test @@ -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" |