From 7450ecd568e94e9bdde01afc3b60dc953a12bdc1 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 7 Jul 2017 03:43:24 -0500 Subject: 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.) --- tests/dd.test | 5 +++-- 1 file 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" -- cgit v1.2.3