Skip to content

Commit 30972de

Browse files
committed
Relaxed the warm time limit for Linux s390x
Signed-off-by: Rachel Green <[email protected]>
1 parent 22e41db commit 30972de

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/wasm_vm_test.cc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,16 @@ TEST_P(TestVm, Init) {
6363
std::cout << "\"cold\" engine time: " << cold << "ns" << std::endl;
6464
std::cout << "\"warm\" engine time: " << warm << "ns" << std::endl;
6565

66+
// Default warm time in nanoseconds.
67+
int warm_time_ns_limit = 10000;
68+
69+
#if defined(__linux__) && defined(__s390x__)
70+
// Linux 390x is significantly slower, so we use a more lenient limit.
71+
warm_time_ns_limit = 75000;
72+
#endif
73+
6674
// Verify that getting a "warm" engine takes less than 10us.
67-
EXPECT_LE(warm, 10000);
75+
EXPECT_LE(warm, warm_time_ns_limit);
6876

6977
// Verify that getting a "warm" engine takes at least 50x less time than getting a "cold" one.
7078
EXPECT_LE(warm * 50, cold);

0 commit comments

Comments
 (0)