test:print error message in ci of address sanitizer test

This commit is contained in:
chenhaoran 2024-05-21 15:45:18 +08:00
parent 8f7f40f75d
commit 69b2c9feca
1 changed files with 2 additions and 2 deletions

View File

@ -89,8 +89,8 @@ else
export LD_PRELOAD="$(realpath "$(gcc -print-file-name=libasan.so)") $(realpath "$(gcc -print-file-name=libstdc++.so)")"
echo "Preload AsanSo:" $?
$* -a 2>$AsanFile
$* -a 2> $AsanFile
cat $AsanFile
unset LD_PRELOAD
for ((i = 1; i <= 20; i++)); do
AsanFileLen=$(cat $AsanFile | wc -l)