]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bugfix: Do not test for inclusion of config.h in header tests 1149/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 16 Jul 2015 13:47:27 +0000 (08:47 -0500)
committerTimo Heister <timo.heister@gmail.com>
Fri, 17 Jul 2015 11:36:21 +0000 (07:36 -0400)
It turns out that sometimes [1] the testsuite picks up revision.h (and
config.h) as well.

revision.h does not include config.h and the test subsequently fails with
the DEAL_II_NAMESPACE_* not being found. Disable this check for the
revision.h test.

[1] For an in-source build and if an installed deal.II is tested.

include/deal.II/base/config.h.in
include/deal.II/base/revision.h.in
tests/all-headers/test_header.cc

index 08e7a3f3ded2786196e0551aab8ac3b3e02d2f97..532addee6ec666d10c134f93bc0fa43e3f28cbb3 100644 (file)
@@ -13,8 +13,8 @@
 //
 // ---------------------------------------------------------------------
 
-#ifndef dealii___config_h
-#define dealii___config_h
+#ifndef dealii__config_h
+#define dealii__config_h
 
 
 /***********************************************************************
index 6206295609137c94feb8dd0d5f953dfd7e1b2743..7e8cc3747d7e6e78f219d9ca90b0e50e970e8de1 100644 (file)
@@ -13,8 +13,8 @@
 //
 // ---------------------------------------------------------------------
 
-#ifndef dealii___revision_h
-#define dealii___revision_h
+#ifndef dealii__revision_h
+#define dealii__revision_h
 
 /**
  * Name of the local git branch of the source directory.
index 4818f513bb6cc03a6b389b1cacfcf7bb340a982d..3cc8ff2ad4827cb05a7d858673a2aeb596e582a6 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2013 - 2014 by the deal.II authors
+// Copyright (C) 2013 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
 
 #include HEADER
 
-// Make sure that config.h is always included:
-DEAL_II_NAMESPACE_OPEN
-DEAL_II_NAMESPACE_CLOSE
+#if !defined(DEAL_II_NAMESPACE_OPEN) && !defined(dealii__revision_h)
+#error "HEADER does not include config.h."
+#endif
+
 
 int main()
 {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.