tests: avoid spurious misc/expr failure on AIX 6.1
authorJim Meyering <meyering@redhat.com>
Mon, 2 Apr 2012 20:32:57 +0000 (22:32 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 3 Apr 2012 06:24:20 +0000 (08:24 +0200)
* tests/misc/expr: Avoid spurious failure on AIX 6.1 due to
differing regexp diagnostic.  Reported by Michael Felt.

tests/misc/expr

index fb81ce7..781cf38 100755 (executable)
@@ -140,7 +140,11 @@ my @Tests =
      ['bre48', '_ : "a\\{1,x"',
       {ERR => "$prog: Unmatched \\{\n"}, {EXIT => 2}],
      ['bre49', '_ : "a\\{32768\\}"',
-      {ERR => "$prog: Invalid content of \\{\\}\n"}, {EXIT => 2}],
+      {ERR => "$prog: Invalid content of \\{\\}\n"}, {EXIT => 2},
+      # Map AIX-6's different diagnostic to the one we expect:
+      {ERR_SUBST =>
+       's,Regular expression too big,Invalid content of \\\\{\\\\},'},
+      ],
      ['bre50', '_ : "a\\{1,0\\}"',
       {ERR => "$prog: Invalid content of \\{\\}\n"}, {EXIT => 2}],
      ['bre51', '"acabc" : ".*ab\\{0,0\\}c"', {OUT => '2'}],