mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-08 20:58:20 +03:00
tests: use systemd-journald to check whether everything has been built with ASan
This commit is contained in:
parent
1766204279
commit
b4a450d85f
@ -37,7 +37,7 @@ is_built_with_asan() {
|
||||
fi
|
||||
|
||||
# Borrowed from https://github.com/google/oss-fuzz/blob/cd9acd02f9d3f6e80011cc1e9549be526ce5f270/infra/base-images/base-runner/bad_build_check#L182
|
||||
local _asan_calls=$(objdump -dC $BUILD_DIR/systemd | egrep "callq\s+[0-9a-f]+\s+<__asan" -c)
|
||||
local _asan_calls=$(objdump -dC $BUILD_DIR/systemd-journald | egrep "callq\s+[0-9a-f]+\s+<__asan" -c)
|
||||
if (( $_asan_calls < 1000 )); then
|
||||
return 1
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user