mirror of
https://github.com/NLnetLabs/unbound.git
synced 2024-09-21 06:37:08 +00:00
- Enable AddressSanitizer error detection in tdir tests.
This commit is contained in:
parent
4b30e88eec
commit
caab100207
@ -127,6 +127,7 @@ dir=$name.$$
|
|||||||
result=result.$name
|
result=result.$name
|
||||||
done=.done-$name
|
done=.done-$name
|
||||||
skip=.skip-$name
|
skip=.skip-$name
|
||||||
|
asan_text="SUMMARY: AddressSanitizer"
|
||||||
success="no"
|
success="no"
|
||||||
if test -x "`which bash`"; then
|
if test -x "`which bash`"; then
|
||||||
shell="bash"
|
shell="bash"
|
||||||
@ -200,6 +201,16 @@ if test -f $name.post -a ! -f ../$skip; then
|
|||||||
echo "Warning: $name.post did not exit successfully"
|
echo "Warning: $name.post did not exit successfully"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
# Check if there were any AddressSanitizer errors
|
||||||
|
# if compiled with -fsanitize=address
|
||||||
|
if grep "$asan_text" $result >/dev/null 2>&1; then
|
||||||
|
if test -f ../$done; then
|
||||||
|
rm ../$done
|
||||||
|
fi
|
||||||
|
echo "$name: FAILED (AddressSanitizer)" >> $result
|
||||||
|
echo "$name: FAILED (AddressSanitizer)"
|
||||||
|
success="no"
|
||||||
|
fi
|
||||||
echo "DateRunEnd: "`date "+%s" 2>/dev/null` >> $result
|
echo "DateRunEnd: "`date "+%s" 2>/dev/null` >> $result
|
||||||
|
|
||||||
mv $result ..
|
mv $result ..
|
||||||
|
Loading…
Reference in New Issue
Block a user