From 3b7c9d1a31a183b903de9c1396a17b4ee64f09f8 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Thu, 25 Dec 2014 02:21:11 +0000 Subject: tests: fix error message check on some systems http://hydra.nixos.org/build/18129583 identified (on OS X) an incorrect test assumption in the previous commit. * gl/lib/xdectoint.c (__xnumtoint): Suppress the EINVAL error message as it's redundant in this context. * tests/misc/tail.pl: Suppress _optionally_ appended strerror messages. * tests/fmt/base.pl: Likewise. * tests/pr/pr-tests.pl: Likewise. * tests/split/l-chunk.sh: Likewise. --- tests/pr/pr-tests.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/pr') diff --git a/tests/pr/pr-tests.pl b/tests/pr/pr-tests.pl index cc2ef38c4..04c21e388 100755 --- a/tests/pr/pr-tests.pl +++ b/tests/pr/pr-tests.pl @@ -22,6 +22,7 @@ use strict; @ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3; my $prog = 'pr'; +my $normalize_strerror = "s/': .*/'/"; my @tv = ( @@ -385,11 +386,9 @@ my @tv = ( ['col-long', '-W3 -t -1 --columns=2', "a\nb\nc\n", "a c\nb\n", 0], # Make sure these fail. ['col-0', '-0', '', '', 1, - "$prog: invalid number of columns: '0'", - 's/:[^:]*$//'], + "$prog: invalid number of columns: '0'\n", $normalize_strerror], ['col-inval', '-'.'9'x100, '', '', 1, - "$prog: invalid number of columns: '". ('9'x100) ."'", - 's/:[^:]*$//'], + "$prog: invalid number of columns: '". ('9'x100) ."'\n", $normalize_strerror], # Before coreutils-5.3.1, --pages=1:-1 would be treated like # --pages=1:18446744073709551615. -- cgit v1.2.3-70-g09d2