Browse Source

TT#111150 add extra runtime options for unit tests

UBSAN doesn't print stack traces by default. Enable them.

The GLib slice allocator must be disabled for proper leak checks and
must be instructed to always use malloc instead.

Change-Id: Ic4fe5ad38aa4460fbe43858b97226cce7d658038
pull/1285/head
Richard Fuchs 5 years ago
parent
commit
8e39599a18
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      .github/workflows/unit-tests.yml

+ 1
- 1
.github/workflows/unit-tests.yml View File

@ -24,4 +24,4 @@ jobs:
- name: Run unit tests with sanitizers enabled
run: |
CFLAGS="$FLAGS" LDFLAGS="$FLAGS" ASAN_OPTIONS=verify_asan_link_order=0 make check
CFLAGS="$FLAGS" LDFLAGS="$FLAGS" ASAN_OPTIONS=verify_asan_link_order=0 UBSAN_OPTIONS=print_stacktrace=1 G_SLICE=always-malloc make check

Loading…
Cancel
Save