Skip to content
Snippets Groups Projects
Commit 51790f61 authored by Christian Engwer's avatar Christian Engwer
Browse files

added switch NO_CONFIG_H to test without config.h and found a bug

[[Imported from SVN: r5268]]
parent 3ec2bcb3
Branches
Tags
No related merge requests found
......@@ -29,13 +29,14 @@ headercheck-am:
CCFILE=hctest.cc; \
OFILE=hctest.o; \
LOGFILE=hctest.log; \
echo "#include <config.h>" > $$CCFILE; \
rm -f $$CCFILE; \
test -n "$$NO_CONFIG_H" || echo "#include <config.h>" > $$CCFILE; \
echo "#include <$${HEADER}>" >> $$CCFILE; \
echo "#include <$${HEADER}>" >> $$CCFILE; \
echo "int main () {}" >> $$CCFILE; \
make $$OFILE > $$LOGFILE 2>&1; \
SUCCESS=$$?; \
(test $$SUCCESS -eq 0 && test ! -s $$LOGFILE) || echo "Error in $$HEADER"; \
test $$SUCCESS -eq 0 || echo "Error in $$HEADER"; \
test $$SUCCESS -eq 0 || cat $$LOGFILE; \
rm -f $$OFILE; \
rm -f $$CCFILE; \
......
......@@ -4,6 +4,7 @@
#define DUNE_DLIST_HH
#include <dune/common/exceptions.hh>
#include <dune/common/deprecated.hh>
namespace Dune {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment