Disable asan errors on null allocation in all.sh
Such error was raised in platform tests, and it's a valid test case. Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
parent
60de0b198a
commit
04bfe5797b
1 changed files with 3 additions and 0 deletions
|
@ -189,6 +189,9 @@ pre_initialize_variables () {
|
||||||
# default to -O2, use -Ox _after_ this if you want another level
|
# default to -O2, use -Ox _after_ this if you want another level
|
||||||
ASAN_CFLAGS='-O2 -Werror -fsanitize=address,undefined -fno-sanitize-recover=all'
|
ASAN_CFLAGS='-O2 -Werror -fsanitize=address,undefined -fno-sanitize-recover=all'
|
||||||
|
|
||||||
|
# Platform tests have an allocation that returns null
|
||||||
|
export ASAN_OPTIONS="allocator_may_return_null=1"
|
||||||
|
|
||||||
# Gather the list of available components. These are the functions
|
# Gather the list of available components. These are the functions
|
||||||
# defined in this script whose name starts with "component_".
|
# defined in this script whose name starts with "component_".
|
||||||
# Parse the script with sed. This way we get the functions in the order
|
# Parse the script with sed. This way we get the functions in the order
|
||||||
|
|
Loading…
Reference in a new issue