From: Ralf Wildenhues Date: Sat, 22 Jan 2011 12:46:27 +0000 (+0100) Subject: tests: avoid fn99*.test failures due to buggy AIX 5.3 cp -R. X-Git-Tag: v1.11.1b~33^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e2e93d82b46e743c68a821684fc5afc54bfef54;p=thirdparty%2Fautomake.git tests: avoid fn99*.test failures due to buggy AIX 5.3 cp -R. * tests/fn99.test, tests/fn99subdir.test: Skip if an initial `cp -R' of the subdir tree already fails; AIX 5.3 cp messes up its internal memory when copying this tree. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 60612243e..04b30dd36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-01-22 Ralf Wildenhues + + tests: avoid fn99*.test failures due to buggy AIX 5.3 cp -R. + * tests/fn99.test, tests/fn99subdir.test: Skip if an initial + `cp -R' of the subdir tree already fails; AIX 5.3 cp messes + up its internal memory when copying this tree. + 2011-01-22 Ralf Wildenhues Stefano Lattarini diff --git a/tests/fn99.test b/tests/fn99.test index 982a989bf..a63f2ca08 100755 --- a/tests/fn99.test +++ b/tests/fn99.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2004, 2008 Free Software Foundation, Inc. +# Copyright (C) 2004, 2008, 2011 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -34,6 +34,9 @@ do touch x done) || Exit 77 +# AIX 5.3 `cp -R' is too buggy for `make dist'. +cp -R 12345678 t || Exit 77 + $ACLOCAL $AUTOCONF $AUTOMAKE diff --git a/tests/fn99subdir.test b/tests/fn99subdir.test index 465f2afc0..33ac6632c 100755 --- a/tests/fn99subdir.test +++ b/tests/fn99subdir.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2006, 2008 Free Software Foundation, Inc. +# Copyright (C) 2006, 2008, 2011 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -55,6 +55,9 @@ do touch x done) +# AIX 5.3 `cp -R' is too buggy for `make dist'. +cp -R ${subdirname} t || Exit 77 + for init_dir in ${subdirname} .; do ( cd ${init_dir} || Exit 1