5247N/AThe tests/misc/expr test is broken by default in version 8.16.
5247N/A
5247N/ALooking at the ChangeLog for GNU coreutils 8.19, I found:
5247N/A
5247N/A2012-04-03 Jim Meyering <meyering@redhat.com>
5247N/A...
5247N/A tests: avoid spurious misc/expr failure on AIX 6.1
5247N/A * tests/misc/expr: Avoid spurious failure on AIX 6.1 due to
5247N/A differing regexp diagnostic. Reported by Michael Felt.
5247N/A
5247N/AIf I use the .../tests/misc/expr test script from 8.19, it works fine.
5247N/ASo I've added the 'tests-misc-expr.patch' file to do just that.
5247N/A
1196N/A--- coreutils-8.16/tests/misc/expr.orig 2012-09-03 07:18:28.214998564 -0700
1196N/A+++ coreutils-8.16/tests/misc/expr 2012-09-03 07:22:12.547808280 -0700
1196N/A@@ -140,7 +140,11 @@
1196N/A ['bre48', '_ : "a\\{1,x"',
1196N/A {ERR => "$prog: Unmatched \\{\n"}, {EXIT => 2}],
1196N/A ['bre49', '_ : "a\\{32768\\}"',
1196N/A- {ERR => "$prog: Invalid content of \\{\\}\n"}, {EXIT => 2}],
1196N/A+ {ERR => "$prog: Invalid content of \\{\\}\n"}, {EXIT => 2},
1196N/A+ # Map AIX-6's different diagnostic to the one we expect:
1196N/A+ {ERR_SUBST =>
1196N/A+ 's,Regular expression too big,Invalid content of \\\\{\\\\},'},
1196N/A+ ],
1196N/A ['bre50', '_ : "a\\{1,0\\}"',
1196N/A {ERR => "$prog: Invalid content of \\{\\}\n"}, {EXIT => 2}],
1196N/A ['bre51', '"acabc" : ".*ab\\{0,0\\}c"', {OUT => '2'}],
1196N/A@@ -171,7 +175,7 @@
1196N/A );
1196N/A
1196N/A # If using big numbers fails, remove all /^bignum-/ tests
1196N/A-`expr $big_prod '*' $big_prod '*' $big_prod`
1196N/A+qx!expr $big_prod '*' $big_prod '*' $big_prod!
1196N/A or @Tests = grep {$_->[0] !~ /^bignum-/} @Tests;
1196N/A
1196N/A # Append a newline to end of each expected 'OUT' string.