tests/read: Make an error more useful

It would be nice to know what the length *is* if it's not the max.
This commit is contained in:
Fabian Homborg
2020-02-12 19:48:11 +01:00
parent 860394d1bd
commit 6cccfa7cf4

View File

@@ -241,7 +241,7 @@ if test $status -ne 0
echo the read of the max amount of data failed unexpectedly
end
if test (string length "$x") -ne $fish_read_limit
echo reading the max amount of data with --nchars failed the length test
echo reading the max amount of data with --nchars failed the length test: (string length "$x")
end
# Confirm reading non-interactively works -- \#4206 regression