Skip to content

Commit

Permalink
Further increase timeouts of 'restapi_return_codes-t' for ASAN builds
Browse files Browse the repository at this point in the history
Added doc elaborating on the limitation.
  • Loading branch information
JavierJF committed May 16, 2024
1 parent 63968d6 commit 3d185ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/tap/tests/reg_test_3223-restapi_return_codes-t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,13 @@ int main(int argc, char** argv) {
vector<ept_info_t> i_epts_info {};
const auto ext_i_epts_info = [] (const faulty_req_t& req) { return req.ept_info; };

// Failed scripts may require to read the full output from ASAN leaks report. This in combination with the
// forked process shutdown slowdown can take a considerable amount of time. A cleaner solution would be
// to disable 'detect_leaks' at runtime, but doesn't look feasible at the moment.
int wasan = get_env_int("WITHASAN", 0);
if (wasan) {
for (auto& req : invalid_requests) {
req.ept_info.timeout += 2000;
req.ept_info.timeout += 8000;
}
}

Expand Down

0 comments on commit 3d185ec

Please sign in to comment.