aboutsummaryrefslogtreecommitdiff
path: root/tests/cmp.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-10-28 23:47:08 -0500
committerRob Landley <rob@landley.net>2019-10-28 23:47:08 -0500
commit78a4be9e6862b970ac33d5ea3f95c98e658a3557 (patch)
tree9ba0c4da8456c6dc2237aa7a6859af8d31f2a14d /tests/cmp.test
parentab3e920602e447ad85e17923095b886e07dd586e (diff)
downloadtoybox-78a4be9e6862b970ac33d5ea3f95c98e658a3557.tar.gz
Only create test file "input" when input argument isn't empty.
Diffstat (limited to 'tests/cmp.test')
-rwxr-xr-xtests/cmp.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cmp.test b/tests/cmp.test
index 0c4355ab..d1a8033b 100755
--- a/tests/cmp.test
+++ b/tests/cmp.test
@@ -35,7 +35,7 @@ testing "-s diff, return code" "cmp -s input input2 2>&1 || echo yes" "yes\n" "a
testing "-l EOF, stderr" "cmp -l input input2 2>&1" "cmp: EOF on input2\n" "ab\nc\nx" ""
testing "-l diff and EOF, stdout and stderr" "cmp -l input input2 2>&1 | sort" "4 170 143\ncmp: EOF on input2\n" "ab\nx\nx" ""
-testing "-s not exist" "cmp -s input doesnotexist 2>&1 || echo yes" "yes\n" "" ""
+testing "-s not exist" "cmp -s input doesnotexist 2>&1 || echo yes" "yes\n" "x" ""
rm input2