Fix tests build for Emscripten.
GitOrigin-RevId: 7dec0a02befeb55379f39f1644cf64077db27ed7
This commit is contained in:
parent
22c88fab89
commit
258f92652d
@ -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();
|
||||
}
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user