From 0a1840b0236d2bc517df4cb7bef62baa58164855 Mon Sep 17 00:00:00 2001 From: Tobias Jungel Date: Fri, 14 Jul 2017 09:39:55 +0200 Subject: [PATCH] make sanitizer happy in crofsocktest --- test/rofl/common/crofsock/crofsocktest.cpp | 8 +------- test/rofl/common/crofsock/crofsocktest.hpp | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/test/rofl/common/crofsock/crofsocktest.cpp b/test/rofl/common/crofsock/crofsocktest.cpp index 3170f9d8..7c15d4bb 100644 --- a/test/rofl/common/crofsock/crofsocktest.cpp +++ b/test/rofl/common/crofsock/crofsocktest.cpp @@ -66,15 +66,9 @@ void crofsocktest::test() { CPPUNIT_ASSERT(timeout > 0); - slisten->close(); - sclient->close(); - sserver->close(); - - sleep(5); - - delete slisten; delete sclient; delete sserver; + delete slisten; } } catch (rofl::eSysCall &e) { diff --git a/test/rofl/common/crofsock/crofsocktest.hpp b/test/rofl/common/crofsock/crofsocktest.hpp index e9e221cf..7589aa7f 100644 --- a/test/rofl/common/crofsock/crofsocktest.hpp +++ b/test/rofl/common/crofsock/crofsocktest.hpp @@ -71,7 +71,7 @@ class crofsocktest : public CppUnit::TestFixture, public rofl::crofsock_env { int timeout; int msg_counter; std::atomic_int server_msg_counter; - int client_msg_counter; + std::atomic_int client_msg_counter; rofl::crandom rand; uint16_t listening_port; rofl::csockaddr baddr;