Try ignoring the first test failure in clang/Ubuntu 20.04 build

For unknown reason this test fails when run for the first time on this
system, but succeeds during the subsequent runs.
This commit is contained in:
Vadim Zeitlin 2022-10-10 23:40:48 +02:00
parent ab1c5105a0
commit cccf2ba263

View file

@ -329,6 +329,15 @@ jobs:
wx_tests_selection='~[.] ~RichTextCtrlTestCase'
fi
ulimit -c unlimited
# This is exceedingly weird, but for some reason the first test using
# wxWebView in the build using clang under Ubuntu 20.04 fails (even
# if the timeout in the test is increased), so run it before really
# running the tests -- then they will succeed.
if [ '${{ matrix.compiler }}' = 'clang++-10' ]; then
xvfb-run -a -s '-screen 0 1600x1200x24' ./test_gui -c Title WebView >/dev/null 2>&1 || echo 'First wxWebView test failure ignored.'
fi
/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