bug-bison
[Top][All Lists]
Advanced

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

Re: Bison 3.5.91 on AIX


From: Akim Demaille
Subject: Re: Bison 3.5.91 on AIX
Date: Sun, 3 May 2020 16:31:33 +0200

Hi Bruno,

> Le 3 mai 2020 à 15:36, Bruno Haible <address@hidden> a écrit :
> 
> On AIX 7.2, the build fails a test in "make check":
> 
> FAIL: examples/c/reccalc/reccalc.test
> 
> Details from test-suite.log:
> 
> FAIL: examples/c/reccalc/reccalc
> ================================
> 
> ../examples/test[143]: seq:  not found.
> FAIL examples/c/reccalc/reccalc.test (exit status: 127)
> 
> 
> Indeed, 'seq' is not one of the common utilities that you can assume present.

So I guess I need this change.  Thanks!

commit 6c5686ca27438d8bbb9f0aa39760b237bd46f89d
Author: Akim Demaille <address@hidden>
Date:   Sun May 3 16:23:50 2020 +0200

    tests: beware of portability issues of sh
    
    "foo || bar" does not invoke bar on AIX 7.2 when foo does not exist.
    It just dies.
    Reported by Bruno Haible.
    https://lists.gnu.org/r/bug-bison/2020-05/msg00029.html
    
    * examples/c/reccalc/reccalc.test: Check for seq in a subshell.

diff --git a/examples/c/reccalc/reccalc.test b/examples/c/reccalc/reccalc.test
index 5e0402a8..27716a24 100644
--- a/examples/c/reccalc/reccalc.test
+++ b/examples/c/reccalc/reccalc.test
@@ -15,7 +15,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-seq 0 >/dev/null || exit 77
+(seq 0) >/dev/null 2>&1 || exit 77
 
 cat >input <<EOF
 1+2*3




reply via email to

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