diff --git a/test/main.cpp b/test/main.cpp index 206470483..c0f31cea6 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -30,7 +30,7 @@ int main(int argc, char **argv) { } #if TD_EMSCRIPTEN emscripten_set_main_loop( - [] { + [&runner] { if (!runner.run_all_step()) { emscripten_cancel_main_loop(); } diff --git a/test/tdclient.cpp b/test/tdclient.cpp index d88d4a265..e95770d2e 100644 --- a/test/tdclient.cpp +++ b/test/tdclient.cpp @@ -874,6 +874,7 @@ TEST(Client, SimpleMulti) { } } +#if !TD_THREAD_UNSUPPORTED TEST(Client, Multi) { std::vector threads; for (int i = 0; i < 4; i++) { @@ -895,6 +896,7 @@ TEST(Client, Multi) { thread.join(); } } +#endif TEST(PartsManager, hands) { //Status init(int64 size, int64 expected_size, bool is_size_final, size_t part_size,