diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2013-03-19 14:55:13 +0100 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2013-03-19 14:55:13 +0100 |
commit | 81d1bef13c101bafeb618a9849b35416927e51cb (patch) | |
tree | 00d152d72211bfae2d5a08522d9adc97de8376fc | |
parent | 5758d2d037cd5cb271a875f449b824da4ec4ab66 (diff) |
testing: mark ClientTest non-copyable
Fixes a correct Klocwork warning about a memory leak when using the default
copy operator - never happens in practice, though.
-rw-r--r-- | test/ClientTest.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ClientTest.h b/test/ClientTest.h index 63e222e1..d3665b37 100644 --- a/test/ClientTest.h +++ b/test/ClientTest.h @@ -45,6 +45,8 @@ #include <syncevo/Logging.h> #include <syncevo/util.h> +#include <boost/utility.hpp> + #include <syncevo/declarations.h> SE_BEGIN_CXX @@ -236,7 +238,7 @@ class SyncTests; * properties (like available sync sources) and then creates several * tests. */ -class ClientTest { +class ClientTest : private boost::noncopyable { public: ClientTest(int serverSleepSec = 0, const std::string &serverLog= ""); virtual ~ClientTest(); |