diff --git a/simulation/test_fast_extensions.cpp b/simulation/test_fast_extensions.cpp index d5c831724..c2baccb40 100644 --- a/simulation/test_fast_extensions.cpp +++ b/simulation/test_fast_extensions.cpp @@ -91,6 +91,7 @@ void run_fake_peer_test( sim.run(); } +#ifndef TORRENT_DISABLE_LOGGING // make sure we consistently send the same allow-fast pieces, regardless // of which pieces the peer has. TORRENT_TEST(allow_fast) @@ -204,3 +205,7 @@ TORRENT_TEST(allow_fast_stress) , int(allowed_fast.size()), num_pieces - 1); TEST_CHECK(int(allowed_fast.size()) < num_pieces / 80); } +#else +TORRENT_TEST(dummy) {} +#endif + diff --git a/simulation/test_session.cpp b/simulation/test_session.cpp index 7b9109553..f22b4b9c0 100644 --- a/simulation/test_session.cpp +++ b/simulation/test_session.cpp @@ -66,6 +66,7 @@ TORRENT_TEST(seed_mode) }); } +#ifndef TORRENT_DISABLE_LOGGING TORRENT_TEST(ip_notifier_setting) { int s_tick = 0; @@ -114,6 +115,7 @@ TORRENT_TEST(ip_notifier_setting) TEST_EQUAL(working_count, 2); } +#endif TORRENT_TEST(force_proxy) { diff --git a/simulation/test_swarm.cpp b/simulation/test_swarm.cpp index aae1ec633..73cc77389 100644 --- a/simulation/test_swarm.cpp +++ b/simulation/test_swarm.cpp @@ -157,7 +157,8 @@ TORRENT_TEST(session_stats) }); } - +// this test relies on picking up log alerts +#ifndef TORRENT_DISABLE_LOGGING TORRENT_TEST(suggest) { int num_suggests = 0; @@ -197,6 +198,7 @@ TORRENT_TEST(suggest) // time TEST_CHECK(num_suggests > 0); } +#endif TORRENT_TEST(utp_only) { diff --git a/test/test_session.cpp b/test/test_session.cpp index 997eddd3c..a152aafcd 100644 --- a/test/test_session.cpp +++ b/test/test_session.cpp @@ -440,6 +440,7 @@ TORRENT_TEST(save_state_peer_id) TEST_CHECK(pid3[5] == 'r'); } +#ifndef TORRENT_DISABLE_LOGGING TORRENT_TEST(init_dht) { auto count_dht_inits = [](session& ses) @@ -577,3 +578,5 @@ TORRENT_TEST(reopen_network_sockets) TEST_CHECK(count_alerts(s, 2, 0)); } +#endif + diff --git a/test/test_tracker.cpp b/test/test_tracker.cpp index d83668d84..a6a2f724a 100644 --- a/test/test_tracker.cpp +++ b/test/test_tracker.cpp @@ -617,6 +617,7 @@ TORRENT_TEST(tracker_proxy) test_proxy(true); } +#ifndef TORRENT_DISABLE_LOGGING void test_stop_tracker_timeout(bool nostop) { // trick the min interval so that the stopped anounce is permitted immediately @@ -705,3 +706,5 @@ TORRENT_TEST(stop_tracker_timeout) std::printf("\n\nexpect to NOT get a request with &event=stopped\n\n"); test_stop_tracker_timeout(true); } +#endif +