coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tests: avoid spurious misc/expr failure on AIX 6.1


From: Jim Meyering
Subject: [PATCH] tests: avoid spurious misc/expr failure on AIX 6.1
Date: Tue, 03 Apr 2012 19:50:30 +0200

FYI,

>From 0f35329876580f07daa30534ce924237f1357539 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Mon, 2 Apr 2012 22:32:57 +0200
Subject: [PATCH] tests: avoid spurious misc/expr failure on AIX 6.1

* tests/misc/expr: Avoid spurious failure on AIX 6.1 due to
differing regexp diagnostic.  Reported by Michael Felt.
---
 tests/misc/expr |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/misc/expr b/tests/misc/expr
index fb81ce7..781cf38 100755
--- a/tests/misc/expr
+++ b/tests/misc/expr
@@ -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'}],
--
1.7.9.3



reply via email to

[Prev in Thread] Current Thread [Next in Thread]