diff -urN a/tests/Modifiers_-_--direct-io.test b/tests/Modifiers_-_--direct-io.test
--- a/tests/Modifiers_-_--direct-io.test	2023-09-13 04:47:44.000000000 +0000
+++ b/tests/Modifiers_-_--direct-io.test	2024-04-19 18:09:03.000000000 +0000
@@ -11,12 +11,12 @@
 # generate some data
 dd if=/dev/urandom of="${workFile1}" bs=1024 count=2560 2>/dev/null
 
-inputChecksum=$(cksum "${workFile1}" | awk '{print $1}')
-doubleInputChecksum=$(cat "${workFile1}" "${workFile1}" | cksum | awk '{print $1}')
+inputChecksum=$(md5 -q "${workFile1}")
+doubleInputChecksum=$(cat "${workFile1}" "${workFile1}" | md5 -q)
 
 # read through pv and test afterwards
 "${testSubject}" -q "${workFile1}" > "${workFile2}"
-outputChecksum=$(cksum "${workFile2}" | awk '{print $1}')
+outputChecksum=$(md5 -q "${workFile2}")
 
 if ! test "${inputChecksum}" = "${outputChecksum}"; then
 	echo "checksum mismatched even without \"--direct-io\""
@@ -26,7 +26,7 @@
 # Same again but with "--direct-io"
 
 "${testSubject}" -K -q "${workFile1}" > "${workFile2}"
-outputChecksum=$(cksum "${workFile2}" | awk '{print $1}')
+outputChecksum=$(md5 -q "${workFile2}")
 if ! test "${inputChecksum}" = "${outputChecksum}"; then
 	echo "checksum mismatched with \"--direct-io\""
 	exit 1
@@ -35,7 +35,7 @@
 # Now with "--direct-io" and "--rate-limit"
 
 "${testSubject}" -K -L 800K -q "${workFile1}" > "${workFile2}"
-outputChecksum=$(cksum "${workFile2}" | awk '{print $1}')
+outputChecksum=$(md5 -q "${workFile2}")
 if ! test "${inputChecksum}" = "${outputChecksum}"; then
 	echo "checksum mismatched with \"--direct-io\" + \"--rate-limit\""
 	exit 1
@@ -44,7 +44,7 @@
 # Now with "--direct-io" on the same file twice
 
 "${testSubject}" -K -q "${workFile1}" "${workFile1}" > "${workFile2}"
-outputChecksum=$(cksum "${workFile2}" | awk '{print $1}')
+outputChecksum=$(md5 -q "${workFile2}")
 if ! test "${doubleInputChecksum}" = "${outputChecksum}"; then
 	echo "checksum mismatched with \"--direct-io\" on two files"
 	exit 1
