Commit 49ba9965 authored by Konrad Sztyber's avatar Konrad Sztyber Committed by Tomasz Zawadzki
Browse files

test/common: change asan/ubsan error exit codes



By default asan/ubsan set exit status to 1 if an error is encountered,
which is fine in most cases.  However, when an app is expected to fail,
it's usually started with `NOT foo`, which will succeed if the program
exits with 1, meaning that it won't catch asan/ubsan errors.  So, change
the exit status to a value that translates to SIGABRT, causing `NOT foo`
to fail.

Signed-off-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I6e51aef0de799a3adccd5a2853a5be2f96bacd4a
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18992


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@gmail.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarSebastian Brzezinka <sebastian.brzezinka@intel.com>
Reviewed-by: default avatarMichal Berger <michal.berger@intel.com>
parent be428cdc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -200,8 +200,8 @@ export PYTHONDONTWRITEBYTECODE=1

# Export flag to skip the known bug that exists in librados
# Bug is reported on ceph bug tracker with number 24078
export ASAN_OPTIONS=new_delete_type_mismatch=0:disable_coredump=0
export UBSAN_OPTIONS='halt_on_error=1:print_stacktrace=1:abort_on_error=1:disable_coredump=0'
export ASAN_OPTIONS=new_delete_type_mismatch=0:disable_coredump=0:exitcode=134
export UBSAN_OPTIONS='halt_on_error=1:print_stacktrace=1:abort_on_error=1:disable_coredump=0:exitcode=134'

# Export LeakSanitizer option to use suppression file in order to prevent false positives
# and known leaks in external executables or libraries from showing up.