Commit e2a61c6e0 for imagemagick.org
commit e2a61c6e0cb33dd3004c0e1590dd4012b6110766
Author: Dirk Lemstra <dirk@lemstra.org>
Date: Sun Sep 20 17:05:55 2026 +0200
Corrected the checks in the unit tests.
diff --git a/tests/cli-pipe.tap b/tests/cli-pipe.tap
index 5f0b61e3f..09c448f5c 100755
--- a/tests/cli-pipe.tap
+++ b/tests/cli-pipe.tap
@@ -91,21 +91,21 @@ else
>/dev/null 2>"$pipe_direct_error"; then
echo "not ok 20 - direct MIFF output reports a write failure"
echo "# command unexpectedly succeeded"
- elif grep -q UnableToWriteFile "$pipe_direct_error"; then
+ elif grep -qi "unable to write file" "$pipe_direct_error"; then
echo "ok 20 - direct MIFF output reports a write failure"
else
echo "not ok 20 - direct MIFF output reports a write failure"
- echo "# expected nonzero status and UnableToWriteFile diagnostic"
+ echo "# expected nonzero status and \"unable to write file\" diagnostic"
fi
if LC_ALL=C ${MAGICK} -size 1x1 xc:white MIFF:- \
>/dev/full 2>"$pipe_stdout_error"; then
echo "not ok 21 - stdout MIFF output reports a write failure"
echo "# command unexpectedly succeeded"
- elif grep -q UnableToWriteFile "$pipe_stdout_error"; then
+ elif grep -qi "unable to write file" "$pipe_stdout_error"; then
echo "ok 21 - stdout MIFF output reports a write failure"
else
echo "not ok 21 - stdout MIFF output reports a write failure"
- echo "# expected nonzero status and UnableToWriteFile diagnostic"
+ echo "# expected nonzero status and \"unable to write file\" diagnostic"
fi
fi
rm -f "$pipe_direct_output" "$pipe_stdout_output" \