From 7e6bd4bb3344c8e0bf3b3cee3f0615270efff2f6 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Tue, 8 May 2018 12:24:01 +0200 Subject: [PATCH] tests: we might need to find gnulib headers 315. calc.at:596: testing Calculator ... ++ cat ++ test x = x1 ++ set +x bison/tests/calc.at:596: bison -fno-caret -o calc.c calc.y ++ bison -fno-caret -o calc.c calc.y ++ set +x bison/tests/calc.at:596: $BISON_C_WORKS stderr: stdout: ++ set +x bison/tests/calc.at:596: $CC $CFLAGS $CPPFLAGS $LDFLAGS -o calc calc.c $LIBS ++ ccache clang-mp-6.0 -Qunused-arguments -O3 -g -Wall -Wextra -Wno-sign-compare -Wcast-align -Wdocumentation -Wformat -Wpointer-arith -Wwrite-strings -Wbad-function-cast -Wshadow -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wmissing-declarations -Wmissing-prototypes -Wundef -pedantic -Wsign-compare -fno-color-diagnostics -Wno-keyword-macro -Werror -Ibison/_build/6s/lib -DNDEBUG -isystem /opt/local/include -I/opt/local/include -L/opt/local/lib -o calc calc.c bison/_build/6s/lib/libbison.a -lintl -Wl,-framework -Wl,CoreFoundation stderr: In file included from calc.y:198: bison/_build/6s/lib/unistd.h:592:11: fatal error: 'getopt-pfx-core.h' file not found # include ^~~~~~~~~~~~~~~~~~~ 1 error generated. stdout: bison/tests/calc.at:596: exit code was 1, expected 0 315. calc.at:596: 315. Calculator (calc.at:596): FAILED (calc.at:596) * tests/atlocal.in (CPPFLAGS): Find gnulib's headers. --- tests/atlocal.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/atlocal.in b/tests/atlocal.in index 406f72d5..7b2b916a 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -16,8 +16,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# We need 'config.h'. -CPPFLAGS="-I$abs_top_builddir/lib @CPPFLAGS@" +# We need 'config.h' (builddir/lib), and the gnulib headers (srcdir/lib). +CPPFLAGS="-I$abs_top_srcdir/lib -I$abs_top_builddir/lib @CPPFLAGS@" # Don't just check if $POSIXLY_CORRECT is set, as Bash, when launched # as /bin/sh, sets the shell variable POSIXLY_CORRECT to y, but not