summaryrefslogtreecommitdiff
path: root/tests/fmt/base.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fmt/base.pl')
-rwxr-xr-xtests/fmt/base.pl9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/fmt/base.pl b/tests/fmt/base.pl
index 8751119f1..e3e304034 100755
--- a/tests/fmt/base.pl
+++ b/tests/fmt/base.pl
@@ -19,6 +19,7 @@
use strict;
(my $program_name = $0) =~ s|.*/||;
+my $normalize_strerror = "s/': .*/'/";
my @Tests =
(
@@ -26,11 +27,11 @@ my @Tests =
{IN=> "ça\nçb\n"},
{OUT=>"ça b\n"}],
['wide-1', '-w 32768',
- {ERR => "fmt: invalid width: '32768'"}, {EXIT => 1},
- {ERR_SUBST => 's/:[^:]*$//'}],
+ {ERR => "fmt: invalid width: '32768'\n"}, {EXIT => 1},
+ {ERR_SUBST => $normalize_strerror}],
['wide-2', '-w 2147483647',
- {ERR => "fmt: invalid width: '2147483647'"}, {EXIT => 1},
- {ERR_SUBST => 's/:[^:]*$//'}],
+ {ERR => "fmt: invalid width: '2147483647'\n"}, {EXIT => 1},
+ {ERR_SUBST => $normalize_strerror}],
['bad-suffix', '-72x', {IN=> ''},
{ERR => "fmt: invalid width: '72x'\n"}, {EXIT => 1}],
['no-file', 'no-such-file',