From 8bf3cdd977a0d6542963c704cadc85e03bbe4e94 Mon Sep 17 00:00:00 2001 From: Joshua Peraza Date: Mon, 14 Dec 2020 10:55:20 -0800 Subject: [PATCH] linux: fix build breakage 2f7d40c4 Removed the last usage of ExpectTestModule() in sanitized builds. Change-Id: I6a894545f07b1c377f88820893c23a2296d74cc7 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2590205 Reviewed-by: Robert Sesek Commit-Queue: Joshua Peraza --- snapshot/linux/process_reader_linux_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snapshot/linux/process_reader_linux_test.cc b/snapshot/linux/process_reader_linux_test.cc index fd3a963b..6373a3a0 100644 --- a/snapshot/linux/process_reader_linux_test.cc +++ b/snapshot/linux/process_reader_linux_test.cc @@ -542,6 +542,7 @@ void ExpectModulesFromSelf( #endif // !OS_ANDROID || !ARCH_CPU_ARMEL || __ANDROID_API__ >= 21 } +#if !defined(ADDRESS_SANITIZER) && !defined(MEMORY_SANITIZER) void ExpectTestModule(ProcessReaderLinux* reader, const std::string& module_name) { for (const auto& module : reader->Modules()) { @@ -560,6 +561,7 @@ void ExpectTestModule(ProcessReaderLinux* reader, } ADD_FAILURE() << "Test module not found"; } +#endif // !ADDRESS_SANITIZER && !MEMORY_SANITIZER TEST(ProcessReaderLinux, SelfModules) { #if !defined(ADDRESS_SANITIZER) && !defined(MEMORY_SANITIZER)