aboutsummaryrefslogtreecommitdiff
path: root/tests/cksum.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-11-20 17:42:45 -0600
committerRob Landley <rob@landley.net>2018-11-20 17:42:45 -0600
commit0a75914fb787b47cb358ff7a64d749062c14aed2 (patch)
treea3d11580be22e9addedbd773692f402d5adb43ae /tests/cksum.test
parent42f8b18bc27b0143edee8fd598eee853d6ca47f9 (diff)
downloadtoybox-0a75914fb787b47cb358ff7a64d749062c14aed2.tar.gz
Fix up some tests for running as a normal user.
Diffstat (limited to 'tests/cksum.test')
-rwxr-xr-xtests/cksum.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cksum.test b/tests/cksum.test
index 01938f43..d69f0cb4 100755
--- a/tests/cksum.test
+++ b/tests/cksum.test
@@ -16,8 +16,8 @@ rm -f one two
# Check the length suppression, both calculate the CRC on 'abc' but the second
# option has length suppression on and has the length concatenated to 'abc'.
-testing "on abc including length" "echo -n 'abc' | cksum" "1219131554 3\n" "" ""
-testing "on abc excluding length" "echo -ne 'abc\x3' | cksum -N" "1219131554 4\n" "" ""
+testing "on abc including length" "cksum" "1219131554 3\n" "" 'abc'
+testing "on abc excluding length" "cksum -N" "1219131554\n" "" 'abc\x3'
# cksum on no contents gives 0xffffffff (=4294967295)
testing "on no data post-inversion" "echo -n "" | cksum" "4294967295 0\n" "" ""