Parcourir la source

[1892] Add scaffolding check around resource.h

Mukund Sivaraman il y a 13 ans
Parent
commit
7d8efaf11c

+ 2 - 0
src/lib/log/tests/log_formatter_unittest.cc

@@ -14,9 +14,11 @@
 
 
 #include "config.h"
 #include "config.h"
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+
 #ifdef EXPECT_ABORT
 #ifdef EXPECT_ABORT
 #include <testutils/resource.h>
 #include <testutils/resource.h>
 #endif /* EXPECT_ABORT */
 #endif /* EXPECT_ABORT */
+
 #include <log/log_formatter.h>
 #include <log/log_formatter.h>
 #include <log/logger_level.h>
 #include <log/logger_level.h>
 
 

+ 2 - 0
src/lib/log/tests/logger_unittest.cc

@@ -17,7 +17,9 @@
 
 
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
 
 
+#ifdef EXPECT_DEATH
 #include <testutils/resource.h>
 #include <testutils/resource.h>
+#endif /* EXPECT_DEATH */
 
 
 #include <log/logger.h>
 #include <log/logger.h>
 #include <log/logger_manager.h>
 #include <log/logger_manager.h>

+ 3 - 0
src/lib/log/tests/message_initializer_2_unittest.cc

@@ -14,7 +14,10 @@
 
 
 #include <log/message_initializer.h>
 #include <log/message_initializer.h>
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
+
+#ifdef EXPECT_DEATH
 #include <testutils/resource.h>
 #include <testutils/resource.h>
+#endif /* EXPECT_DEATH */
 
 
 using namespace isc::log;
 using namespace isc::log;
 
 

+ 5 - 1
src/lib/server_common/tests/portconfig_unittest.cc

@@ -12,17 +12,21 @@
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // PERFORMANCE OF THIS SOFTWARE.
 // PERFORMANCE OF THIS SOFTWARE.
 
 
+#include <gtest/gtest.h>
+
 #include <server_common/portconfig.h>
 #include <server_common/portconfig.h>
 #include <testutils/socket_request.h>
 #include <testutils/socket_request.h>
 #include <testutils/mockups.h>
 #include <testutils/mockups.h>
+
+#ifdef EXPECT_DEATH
 #include <testutils/resource.h>
 #include <testutils/resource.h>
+#endif /* EXPECT_DEATH */
 
 
 #include <cc/data.h>
 #include <cc/data.h>
 #include <exceptions/exceptions.h>
 #include <exceptions/exceptions.h>
 #include <asiolink/asiolink.h>
 #include <asiolink/asiolink.h>
 #include <asiodns/asiodns.h>
 #include <asiodns/asiodns.h>
 
 
-#include <gtest/gtest.h>
 #include <string>
 #include <string>
 
 
 using namespace isc::server_common::portconfig;
 using namespace isc::server_common::portconfig;

+ 5 - 2
src/lib/util/tests/buffer_unittest.cc

@@ -12,13 +12,16 @@
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // PERFORMANCE OF THIS SOFTWARE.
 // PERFORMANCE OF THIS SOFTWARE.
 
 
+#include <gtest/gtest.h>
+
 #include <exceptions/exceptions.h>
 #include <exceptions/exceptions.h>
+
+#ifdef EXPECT_DEATH
 #include <testutils/resource.h>
 #include <testutils/resource.h>
+#endif /* EXPECT_DEATH */
 
 
 #include <util/buffer.h>
 #include <util/buffer.h>
 
 
-#include <gtest/gtest.h>
-
 using namespace isc;
 using namespace isc;
 
 
 namespace {
 namespace {