Skip to content

Commit

Permalink
Disable hard-coded HeapLeakChecker::Disabler
Browse files Browse the repository at this point in the history
In CI, we would like to run contrail unit tests without using gperftools.
Only this test does not buld due to hard coded usage of HeapLeakChecker::Disabler

Change-Id: Ie5c734f02ce0790f36906e54a287c62d1ceeaef5
Closes-Bug: 1596630
  • Loading branch information
ananth-at-camphor-networks committed Jun 30, 2016
1 parent 082e94f commit 5784f0d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/query_engine/rac_alloc_test.cc
Expand Up @@ -3,9 +3,6 @@
*/

#include "../analytics/redis_connection.h"
#ifndef __APPLE__
#include "gperftools/heap-checker.h"
#endif

RedisAsyncConnection * rac_alloc(EventManager *evm, const std::string & redis_ip,
unsigned short redis_port,
Expand All @@ -21,9 +18,6 @@ RedisAsyncConnection * rac_alloc_nocheck(EventManager *evm, const std::string &
unsigned short redis_port,
RedisAsyncConnection::ClientConnectCbFn client_connect_cb,
RedisAsyncConnection::ClientDisconnectCbFn client_disconnect_cb) {
#ifndef __APPLE__
HeapLeakChecker::Disabler disabler;
#endif
RedisAsyncConnection * rac =
new RedisAsyncConnection( evm, redis_ip, redis_port,
client_connect_cb, client_disconnect_cb);
Expand Down

0 comments on commit 5784f0d

Please sign in to comment.