From f417705e97cd8a50ba06f6497c7c3cb0192f75f3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 22 Jul 2021 18:53:09 +0200 Subject: [PATCH] Try better workaround for the ASAN CI build failures Try excluding RichTextCtrlTestCase in the CI build using ASAN, as the test can still be killed while running the Table sub-test of this test case even when running only a subset of all tests, so try skipping this one instead. --- .github/workflows/ci.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ededfe2e8..035f5aecec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -257,17 +257,14 @@ jobs: ASAN_OPTIONS=detect_leaks=0 fi export ASAN_OPTIONS="$ASAN_OPTIONS fast_unwind_on_malloc=0" + + # Running all tests at once fails, apparently due to running out of + # memory when using ASAN, work around this problem by excluding + # RichTextCtrlTestCase whose Table sub-test seems to be problematic. + wx_tests_selection='~[.] ~RichTextCtrlTestCase' fi ulimit -c unlimited - # Running all tests at once fails, apparently due to running out of - # memory when using ASAN, work around this problem by splitting them - # in 2 parts. - # - # Also, as a temporary workaround for a problem with ProcessEnter() - # test, run ButtonTestCase before running wx* tests. This should be - # reverted once the actual problem in the test is fixed. - /bin/bash -o pipefail -c 'xvfb-run -a -s "-screen 0 1600x1200x24" ./test_gui -d 1 ButtonTestCase,wx* ~[.] 2>&1 | tee -a test_gui.out' || rc=$? - /bin/bash -o pipefail -c 'xvfb-run -a -s "-screen 0 1600x1200x24" ./test_gui -d 1 ~wx* ~[.] 2>&1 | tee -a test_gui.out' || rc=$? + /bin/bash -o pipefail -c "xvfb-run -a -s '-screen 0 1600x1200x24' ./test_gui -d 1 $wx_tests_selection 2>&1 | tee -a test_gui.out" || rc=$? if [ -n "$rc" ]; then if fgrep -q '(core dumped)' test_gui.out; then echo '*** Test crashed, trying to get more information ***'