From 2de908aead1182e07851e05b9f31759fe445e4f5 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Wed, 10 Feb 2021 10:16:09 +0100 Subject: [PATCH] test: count call instructions as well Binaries on the latest Arch Linux use `call` instructions instead of `callq`, which breaks the ASan detection and eventually the image building process (due to insufficient space). --- test/test-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-functions b/test/test-functions index df6022982c2..44696aff3b7 100644 --- a/test/test-functions +++ b/test/test-functions @@ -182,7 +182,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 $SYSTEMD_JOURNALD | egrep "callq\s+[0-9a-f]+\s+<__asan" -c) + local _asan_calls=$(objdump -dC $SYSTEMD_JOURNALD | egrep "callq?\s+[0-9a-f]+\s+<__asan" -c) if (( $_asan_calls < 1000 )); then return 1 else -- 2.47.3