From faeb02e16436abef0587c555ae718e8db8edc694 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sat, 9 Nov 2024 12:34:48 +0100 Subject: [PATCH] try launch freebsd tests in gdb and print stack trace --- .github/workflows/ci.yml | 18 +++++++++++++++++- auto_tests/TCP_test.c | 5 +++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 46aa57f315..c463dfa396 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -160,6 +160,7 @@ jobs: prepare: PAGER=cat ASSUME_ALWAYS_YES=YES pkg install cmake + gdb git gmake googletest @@ -177,10 +178,25 @@ jobs: -DMUST_BUILD_TOXAV=ON \ -DNON_HERMETIC_TESTS=ON \ -DTEST_TIMEOUT_SECONDS=50 \ + -DCMAKE_TEST_LAUNCHER="gdb;--batch;--return-child-result;-ex;set pagination off;-ex;run;-ex;thread apply all bt;--args" \ -DUSE_IPV6=OFF \ -DAUTOTEST=ON cmake --build . --target install - ctest -j50 --output-on-failure --rerun-failed --repeat until-pass:6 + #ctest -j50 --output-on-failure --rerun-failed --repeat until-pass:6 + ctest -V -R TCP --repeat until-fail:24 + ctest -V -R TCP --repeat until-fail:24 + ctest -V -R TCP --repeat until-fail:24 + ctest -V -R TCP --repeat until-fail:24 + ctest -V -R TCP --repeat until-fail:24 + ctest -V -R TCP --repeat until-fail:24 + ctest -V -R TCP --repeat until-fail:24 + ctest -V -R TCP --repeat until-fail:24 + ctest -V -R TCP --repeat until-fail:24 + ctest -V -R TCP --repeat until-fail:24 + ctest -V -R TCP --repeat until-fail:24 + ctest -V -R TCP --repeat until-fail:24 + ctest -V -R TCP --repeat until-fail:24 + ctest -V -R TCP --repeat until-fail:24 mypy: runs-on: ubuntu-latest diff --git a/auto_tests/TCP_test.c b/auto_tests/TCP_test.c index c4ea79b08d..2f6764848c 100644 --- a/auto_tests/TCP_test.c +++ b/auto_tests/TCP_test.c @@ -914,10 +914,15 @@ static void test_tcp_connection2(void) static void tcp_suite(void) { test_basic(); + c_sleep(1000); test_some(); + c_sleep(1000); test_client(); + c_sleep(1000); test_client_invalid(); + c_sleep(1000); test_tcp_connection(); + c_sleep(1000); test_tcp_connection2(); }