disable tests of extensions when they are disabled by the build config

This commit is contained in:
arvidn 2015-06-14 21:19:27 -04:00
parent c71a48bcf2
commit 4224310c6f
1 changed files with 3 additions and 0 deletions

View File

@ -636,6 +636,7 @@ TORRENT_TEST(multiple_have_all)
print_session_log(*ses);
}
#ifndef TORRENT_DISABLE_EXTENSIONS
// makes sure that pieces that are lost are not requested
TORRENT_TEST(dont_have)
{
@ -795,6 +796,8 @@ TORRENT_TEST(invalid_metadata_request)
print_session_log(*ses);
}
#endif // TORRENT_DISABLE_EXTENSIONS
// TODO: test sending invalid requests (out of bound piece index, offsets and
// sizes)