From: Ben Pfaff Date: Mon, 26 Nov 2018 01:54:17 +0000 (-0800) Subject: tests: Disable Address Sanitizer SIGSEGV handler for intentional SIGSEGV. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2985cdf32d310e19f8972d7d5d61d9da5f65873;p=pspp tests: Disable Address Sanitizer SIGSEGV handler for intentional SIGSEGV. --- diff --git a/tests/ui/terminal/main.at b/tests/ui/terminal/main.at index a67447e48e..9da187fa45 100644 --- a/tests/ui/terminal/main.at +++ b/tests/ui/terminal/main.at @@ -38,6 +38,10 @@ AT_CHECK([pspp main.sps & sleep 1; kill $!; wait $!], [143], [], [ignore]) AT_CLEANUP AT_SETUP([SIGSEGV yields error report]) + +# This test intentionally causes SIGSEGV, so make Address Sanitizer ignore it. +ASAN_OPTIONS=$ASAN_OPTIONS:handle_segv=0; export ASAN_OPTIONS + AT_CHECK([[echo 'host command=["kill -SEGV $PPID"].' | pspp -O format=csv]], [139], [], [stderr])