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.
$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
$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
# 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
# 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
# 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
# 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
// 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) {}