From fa5d5676f41c696a31ebc794746a7e4ced54a205 Mon Sep 17 00:00:00 2001 From: Joel Cunningham Date: Sat, 3 Mar 2018 16:54:44 -0600 Subject: [PATCH] unit: increase test timeout Increase test timeout to 10 seconds from default of 4 seconds. See: https://github.com/libcheck/check/blob/9950edf2a7ba76ad33b47d27bcd237ea1be91612/src/check.c#L36 On my Windows 10 box running WSL, the Unix port unit test fails in the pbuf tests which do binary compares on 65KB buffers: ../../../../lwip/src/../test/unit/core/test_pbuf.c:169:E:PBUF:test_pbuf_queueing_bigger_than_64k:0: (after this point) Test timeout expired The Windows 10 box has an old core 2 duo, which maybe the cause of the slow down. Could also be WSL or Windows defender, but 10 seconds is enough to pass unit tests --- test/unit/lwip_unittests.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/lwip_unittests.c b/test/unit/lwip_unittests.c index be74077..a6de561 100644 --- a/test/unit/lwip_unittests.c +++ b/test/unit/lwip_unittests.c @@ -27,6 +27,7 @@ Suite* create_suite(const char* name, testfunc *tests, size_t num_tests, SFun se for(i = 0; i < num_tests; i++) { TCase *tc_core = tcase_create(name); + tcase_set_timeout(tc_core, 10); if ((setup != NULL) || (teardown != NULL)) { tcase_add_checked_fixture(tc_core, setup, teardown); } -- 2.7.4