From 8e39599a18c81e150cb86a6150be82b7a50eda3d Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 29 Mar 2021 12:46:30 -0400 Subject: [PATCH] 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 --- .github/workflows/unit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index f046da73b..6742f5b6d 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -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