linux: disable test module in more tests

This test was missed in
https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2585002

Change-Id: Icf972284d2be02b4dae85611fcb2b5623f677ef2
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2586007
Reviewed-by: Robert Sesek <rsesek@chromium.org>
Commit-Queue: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
Joshua Peraza 2020-12-10 13:36:45 -08:00 committed by Commit Bot
parent 0886a625cc
commit 2f7d40c405

View File

@ -599,13 +599,17 @@ class ChildModuleTest : public Multiprocess {
ASSERT_TRUE(process_reader.Initialize(&connection));
ExpectModulesFromSelf(process_reader.Modules());
#if !defined(ADDRESS_SANITIZER) && !defined(MEMORY_SANITIZER)
ExpectTestModule(&process_reader, module_soname_);
#endif // !ADDRESS_SANITIZER && !MEMORY_SANITIZER
}
void MultiprocessChild() override {
#if !defined(ADDRESS_SANITIZER) && !defined(MEMORY_SANITIZER)
ScopedModuleHandle empty_test_module(
LoadTestModule("test_module.so", module_soname_));
ASSERT_TRUE(empty_test_module.valid());
#endif // !ADDRESS_SANITIZER && !MEMORY_SANITIZER
char c = 0;
ASSERT_TRUE(LoggingWriteFile(WritePipeHandle(), &c, sizeof(c)));