Skip to content

Commit

Permalink
make sanitizer happy in crofsocktest
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Jungel committed Oct 4, 2017
1 parent 928ac99 commit 0a1840b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions test/rofl/common/crofsock/crofsocktest.cpp
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion test/rofl/common/crofsock/crofsocktest.hpp
Expand Up @@ -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;
Expand Down

0 comments on commit 0a1840b

Please sign in to comment.