From 2d3c7c9b433badf7f75907f5f01a8b569be9a952 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 21 Dec 2004 09:55:14 +0000 Subject: Avoid spurious failure on x86 solaris2.9 when using c89. --- tests/misc/split-fail | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests/misc/split-fail') 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 -- cgit v1.2.3-54-g00ecf