]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
test: more rerunning autotools, C++ std:: portability.
authorKarl Berry <karl@freefriends.org>
Sun, 28 Jan 2024 15:45:25 +0000 (07:45 -0800)
committerKarl Berry <karl@freefriends.org>
Sun, 28 Jan 2024 15:45:25 +0000 (07:45 -0800)
Trying to fix more of https://bugs.gnu.org/68119.

* t/aclocal-deleted-header-aclocal-amflags.sh: $sleep
before file modifications.
* t/aclocal-deleted-header.sh: likewise.
* t/aclocal-deps.sh: likewise.
* t/subdir-add2-pr46.sh: likewise.
* t/yacc-mix-c-cxx.sh: #include <cstdlib> before using std::...,
following yacc-cxx and yacc-d-cxx tests.

t/aclocal-deleted-header-aclocal-amflags.sh
t/aclocal-deleted-header.sh
t/aclocal-deps.sh
t/subdir-add2-pr46.sh
t/yacc-mix-c-cxx.sh

index b24bd081621a3817411c14e0b8e8ef87351a0f32..13807799bde6dacc2b5e911d623a30a98c319ae3 100644 (file)
@@ -42,13 +42,12 @@ EOF
 $ACLOCAL -I .
 $AUTOMAKE
 $AUTOCONF
-
 ./configure
-
 $MAKE
 grep GREPFOO Makefile
 grep GREPBAR Makefile && exit 1
 
+$sleep
 sed 's/FOO/BAR/' < configure.ac > t
 mv -f t configure.ac
 rm -f foo.m4
index 8c277cb9649b33c7b9d7ad2ff521ba541ff0f1c5..b043a388fab76c4e2a5060315201da033a18b557 100644 (file)
@@ -39,13 +39,12 @@ EOF
 $ACLOCAL
 $AUTOMAKE
 $AUTOCONF
-
 ./configure
-
 $MAKE
 grep GREPFOO Makefile
 grep GREPBAR Makefile && exit 1
 
+$sleep
 sed 's/FOO/BAR/' < configure.ac > t
 mv -f t configure.ac
 rm -f foo.m4
index 7b2fdc0a616eb25b5535525627431bbf92bd0a3b..02b06438af61781ff607984bf7c1f3693ad33ba5 100644 (file)
@@ -64,7 +64,7 @@ $MAKE check-not-foo
 
 # Update one of the macros.  This should cause ./configure, Makefile.in,
 # Makefile, lib/Makefile.in, and lib/Makefile to be updated.
-
+$sleep
 cat >m4/mymacro.m4 <<'EOF'
 AC_DEFUN([MY_MACRO], [AC_LIBOBJ([foo])])
 EOF
index 6661581c2acfcee00b325f17f6f09a4db577efe2..1d65d92bbba3e7b9268dd51c9df675b575b0bfa8 100644 (file)
@@ -57,7 +57,7 @@ $MAKE
 # configure.ac.  That is already tested by 'subdir-add-pr46.sh' though,
 # so here we try to just edit a file that is included by configure.ac,
 # without touching configure.ac itself.
-
+$sleep
 mkdir sub/maude
 cat > sub/maude/Makefile.am << 'END'
 include_HEADERS = foo.h
@@ -80,6 +80,7 @@ echo 'AC_CONFIG_FILES([maude/Makefile sub/maude/Makefile])' >> confiles.m4
 # We want a simple rebuild from sub/ to create sub/maude/Makefile
 # and maude/Makefile automatically.
 cd sub
+$sleep
 $MAKE
 cd ..
 grep '^SUBDIRS = *maude *$' sub/Makefile.in
@@ -89,6 +90,7 @@ test -f sub/maude/Makefile
 
 # Make sure the dependencies of aclocal.m4 or honored at least from
 # the top-level directory.
+$sleep
 echo 'AC_DEFUN([MORE_DEFS], [AC_SUBST([GREPME])])' > m4/moredefs.m4
 $MAKE
 
index 6138ead1f75fe489a43a0f754dcda3c2d3f6a411..0e7e2e10425595216eb95d69b729364c2ba0eb13 100644 (file)
@@ -88,10 +88,10 @@ cat > parse.yy <<'END'
 // https://bugs.gnu.org/20031
 #include <stdlib.h>
 // Valid C++, but deliberately invalid C.
+#include <cstdlib>
 using std::exit;
 using std::free;
 using std::malloc;
-#include <cstdlib>
 #include "parse.hh"
 int yylex (void) { return 0; }
 void yyerror (const char *s) {}