Browse Source

test for boost::asio version of course needs have_boost_system check

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac183@1942 e5f2f494-b856-4b98-b285-d166d9295462
Jelte Jansen 15 years ago
parent
commit
250a36eef5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/lib/cc/session_unittests.cc

+ 3 - 0
src/lib/cc/session_unittests.cc

@@ -14,6 +14,7 @@
 
 // $Id: data_unittests.cc 1899 2010-05-21 12:03:59Z jelte $
 
+#include "config.h"
 #include <gtest/gtest.h>
 #include <session.h>
 #include <boost/asio.hpp>
@@ -21,6 +22,7 @@
 
 using namespace isc::cc;
 
+#ifdef HAVE_BOOST_SYSTEM
 TEST(AsioSession, establish) {
     boost::asio::io_service io_service_;
     Session sess(io_service_);
@@ -40,6 +42,7 @@ TEST(AsioSession, establish) {
     );
                   
 }
+#endif
 
 TEST(Session, establish) {
     Session sess;