script: Fix check_symbols() with gcov build
authorAndreas Schneider <asn@samba.org>
Fri, 1 Apr 2022 07:13:40 +0000 (09:13 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 4 Apr 2022 07:59:51 +0000 (07:59 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Apr  4 07:59:51 UTC 2022 on sn-devel-184

script/autobuild.py

index 148dbe8487b6963b74ed175d76c70d07bd44c587..b72b6f7125c937ff0152accdc3e62c1087750248 100755 (executable)
@@ -123,7 +123,7 @@ CLEAN_SOURCE_TREE_CMD = "cd ${TEST_SOURCE_DIR} && script/clean-source-tree.sh"
 
 def check_symbols(sofile, expected_symbols=""):
     return "objdump --dynamic-syms " + sofile + " | " + \
-           "awk \'$0 !~ /" + expected_symbols + "/ {if ($2 == \"g\" && $3 ~ /D(F|O)/ && $4 ~ /(.bss|.text)/) exit 1}\'"
+           "awk \'$0 !~ /" + expected_symbols + "/ {if ($2 == \"g\" && $3 ~ /D(F|O)/ && $4 ~ /(.bss|.text)/ && $7 !~ /(__gcov_|mangle_path)/) exit 1}\'"
 
 if args:
     # If we are only running specific test,