don't run the CPU intensive part of test_dht under valgrind
This commit is contained in:
parent
0a5a042752
commit
0985c9e6c8
|
@ -942,6 +942,8 @@ int test_main()
|
|||
|
||||
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 j = 0; j < 160; j += 8)
|
||||
|
@ -965,6 +967,7 @@ int test_main()
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
{
|
||||
// test kademlia routing table
|
||||
|
|
Loading…
Reference in New Issue