Work around GUI tests failure in ASAN build on GitHub CI
It seems like running the full test suite runs out of memory, as the test is simply killed, without any more details, after running a certain number of tests. Split the tests into 2 parts and run them separately to work around this problem.
This commit is contained in:
parent
1154689322
commit
6af7c3da82
1 changed files with 5 additions and 1 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -259,7 +259,11 @@ jobs:
|
|||
export ASAN_OPTIONS="$ASAN_OPTIONS fast_unwind_on_malloc=0"
|
||||
fi
|
||||
ulimit -c unlimited
|
||||
/bin/bash -o pipefail -c 'xvfb-run -a -s "-screen 0 1600x1200x24" ./test_gui -d 1 2>&1 | tee test_gui.out' || rc=$?
|
||||
# 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.
|
||||
/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* ~[.] 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 ***'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue