Fix tests build for Emscripten.

GitOrigin-RevId: 7dec0a02befeb55379f39f1644cf64077db27ed7
This commit is contained in:
levlam 2019-11-17 21:41:23 +03:00
parent 22c88fab89
commit 258f92652d
2 changed files with 3 additions and 1 deletions

View File

@ -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();
}

View File

@ -874,6 +874,7 @@ TEST(Client, SimpleMulti) {
}
}
#if !TD_THREAD_UNSUPPORTED
TEST(Client, Multi) {
std::vector<td::thread> 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,