don't run the CPU intensive part of test_dht under valgrind

This commit is contained in:
Arvid Norberg 2013-10-14 08:52:45 +00:00
parent 0a5a042752
commit 0985c9e6c8
1 changed files with 3 additions and 0 deletions

View File

@ -942,6 +942,8 @@ int test_main()
using namespace libtorrent::dht; using namespace libtorrent::dht;
// this is a bit too expensive to do under valgrind
#ifndef TORRENT_USE_VALGRIND
for (int i = 0; i < 160; i += 8) for (int i = 0; i < 160; i += 8)
{ {
for (int j = 0; j < 160; j += 8) for (int j = 0; j < 160; j += 8)
@ -965,6 +967,7 @@ int test_main()
} }
} }
} }
#endif
{ {
// test kademlia routing table // test kademlia routing table