summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-12-21 09:55:14 +0000
committerJim Meyering <jim@meyering.net>2004-12-21 09:55:14 +0000
commit2d3c7c9b433badf7f75907f5f01a8b569be9a952 (patch)
tree5e76880aab785cdca50fdd315a949dc8db7d2340 /tests/misc
parentcc344eeacec782bdef594f07ae3eab3ff6aa9311 (diff)
downloadcoreutils-2d3c7c9b433badf7f75907f5f01a8b569be9a952.tar.xz
Avoid spurious failure on x86 solaris2.9 when using c89.
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/split-fail11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/misc/split-fail b/tests/misc/split-fail
index 93cf8d6f0..fdefe61c3 100755
--- a/tests/misc/split-fail
+++ b/tests/misc/split-fail
@@ -50,8 +50,17 @@ split --bytes=$_4gb in || fail=1
# Make sure that a huge obsolete option evokes the right failure.
env -u _POSIX2_VERSION split -99999999999999999991 2> out && fail=1
+
+# On losing systems (x86 solaris 2.9 c89), we get a message like this:
+# split: line count option -9999999999... is too large
+# while on most, we get this:
+# split: line count option -99999999999999999991... is too large
+# so map them both to -99*1...
+sed 's/99[19]*/99*/' out > out-t
+mv -f out-t out
+
cat <<\EOF > exp
-split: line count option -99999999999999999991... is too large
+split: line count option -99*... is too large
EOF
cmp out exp || fail=1
test $fail = 1 && diff out exp 2> /dev/null