test: simplify ASAN detection

This commit is contained in:
dundargoc
2025-03-01 13:30:28 +01:00
committed by dundargoc
parent b45a44dd32
commit 59c328bc88
5 changed files with 6 additions and 20 deletions

View File

@@ -418,6 +418,10 @@ function M.is_arch(s)
return s == architecture
end
function M.is_asan()
return M.paths.is_asan
end
local tmpname_id = 0
local tmpdir = os.getenv('TMPDIR') or os.getenv('TEMP')
local tmpdir_is_local = not not (tmpdir and tmpdir:find('Xtest'))