CI: use address sanitizer without leak checks

Use address sanitizer to catch use-after-free and other errors when
running the test suite.

Leak detection is disabled, because currently there are too many leaks,
making almost all tests fail otherwise.

The atexit=1 is for verifying that ASan was actually used.

The default 128 MB of RAM in the qemu machine leads to oom-killer
killing most tests, so bump the memory size to 1 GB.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen
2021-05-07 14:28:18 +03:00
parent a49ca3d205
commit 5de3b047b7
2 changed files with 3 additions and 3 deletions
@@ -21,7 +21,7 @@ export HOME=/root
while ! [ -e /run/seatd.sock ]; do sleep 0.1; done
# run the tests and save the exit status
ninja test
ASAN_OPTIONS=detect_leaks=0,atexit=1 ninja test
TEST_RES=$?
# create a file to keep the result of this script: