crashpad/test
Mark Mentovai 0e3c38a4ca win: Make ProcessSnapshotTest.CrashpadInfoChild use a loaded module
When this test examines a module that doesn’t have a CodeView PDB link,
it will fail. Such a link may be missing when linking with Lexan
ld-link.exe without /DEBUG. The test had been examining the executable
as its module. Since it’s easier to provide a single small module linked
with /DEBUG than it is to require that the test executable always be
linked with /DEBUG, the test is revised to always load a module and
operate on it. The module used is the existing
crashpad_snapshot_test_image_reader_module.dll. It was chosen because
it’s also used by PEImageReader.DebugDirectory, which also requires a
CodeView PDB link.

It’s the build system’s responsibility to ensure that
crashpad_snapshot_test_image_reader_module.dll is linked appropriately.
Crashpad’s own GYP-based build always links with /DEBUG. Chrome’s
GN-based Crashpad build will require additional attention at
symbol_level = 0.

Bug: chromium:782781
Change-Id: I0dda8cd13278b82842263e76bcc46362bd3998df
Reviewed-on: https://chromium-review.googlesource.com/761501
Reviewed-by: Leonard Mosescu <mosescu@chromium.org>
2017-11-09 23:18:51 +00:00
..
linux linux: Refactor `ptrace` usage. 2017-09-22 16:25:32 +00:00
mac mac: Handle _dyld_get_all_image_infos() not being available on 10.13 2017-06-14 15:08:05 +00:00
win test: Rework TestPaths interface for obtaining 32-bit build artifacts 2017-11-01 16:44:45 +00:00
errors.cc Roll DEPS for mini_chromium for updates to base/posix/safe_strerror 2015-06-11 20:25:49 -04:00
errors.h test: Use (actual, [un]expected) in gtest {ASSERT,EXPECT}_{EQ,NE} 2017-04-04 12:34:24 +00:00
file.cc Standardize on static constexpr for arrays when possible 2017-07-25 17:40:51 +00:00
file.h Add FileWriteMode::kCreateOrFail 2015-10-07 08:20:55 -04:00
filesystem.cc Add FileModificationTime 2017-11-09 06:27:46 +00:00
filesystem.h Add FileModificationTime 2017-11-09 06:27:46 +00:00
gtest_death_check.h test: Move util/test to its own top-level directory, test. 2015-03-31 17:44:14 -04:00
gtest_disabled.cc win: Expect uneven symbolic link support 2017-10-26 23:01:14 +00:00
gtest_disabled.h win: Expect uneven symbolic link support 2017-10-26 23:01:14 +00:00
gtest_main.cc test: Don’t hide --gtest_* arguments from Chromium’s test runner 2017-11-01 16:26:51 +00:00
hex_string.cc Centrally define CPUContextX86::Fsave and fsave↔︎fxsave conversions 2017-02-16 18:26:13 +00:00
hex_string.h test: Use (actual, [un]expected) in gtest {ASSERT,EXPECT}_{EQ,NE} 2017-04-04 12:34:24 +00:00
hex_string_test.cc Standardize on static constexpr for arrays when possible 2017-07-25 17:40:51 +00:00
main_arguments.cc test: Compare ProcessInfo::Arguments() to main()’s argc/argv on POSIX 2017-03-20 17:05:30 +00:00
main_arguments.h test: Compare ProcessInfo::Arguments() to main()’s argc/argv on POSIX 2017-03-20 17:05:30 +00:00
main_arguments_test.cc test: Compare ProcessInfo::Arguments() to main()’s argc/argv on POSIX 2017-03-20 17:05:30 +00:00
multiprocess.h Use base/macros.h instead of base/basictypes.h 2016-01-06 12:22:50 -05:00
multiprocess_exec.h test: Rework TestPaths interface for obtaining 32-bit build artifacts 2017-11-01 16:44:45 +00:00
multiprocess_exec_posix.cc test: Rework TestPaths interface for obtaining 32-bit build artifacts 2017-11-01 16:44:45 +00:00
multiprocess_exec_test.cc test: Rework TestPaths interface for obtaining 32-bit build artifacts 2017-11-01 16:44:45 +00:00
multiprocess_exec_test_child.cc Port the test library and crashpad_test_test to Linux/Android 2016-10-31 19:30:24 +00:00
multiprocess_exec_win.cc test: Rework TestPaths interface for obtaining 32-bit build artifacts 2017-11-01 16:44:45 +00:00
multiprocess_posix.cc test: Use (actual, [un]expected) in gtest {ASSERT,EXPECT}_{EQ,NE} 2017-04-04 12:34:24 +00:00
multiprocess_posix_test.cc test: Use (actual, [un]expected) in gtest {ASSERT,EXPECT}_{EQ,NE} 2017-04-04 12:34:24 +00:00
scoped_module_handle.cc mac: Handle _dyld_get_all_image_infos() not being available on 10.13 2017-06-14 15:08:05 +00:00
scoped_module_handle.h win: Make ProcessSnapshotTest.CrashpadInfoChild use a loaded module 2017-11-09 23:18:51 +00:00
scoped_temp_dir.cc Add DirectoryReader to iterate over files in a directory 2017-10-16 19:56:54 +00:00
scoped_temp_dir.h Use base/macros.h instead of base/basictypes.h 2016-01-06 12:22:50 -05:00
scoped_temp_dir_posix.cc Add DirectoryReader to iterate over files in a directory 2017-10-16 19:56:54 +00:00
scoped_temp_dir_test.cc Fix crashpad_util_test build with GCC after 4b450c8137 2017-04-07 20:06:42 +00:00
scoped_temp_dir_win.cc Make crashpad_util_test build without warnings with clang-cl on Windows. 2017-10-25 19:02:47 +00:00
test.gyp Move filesystem test utilities to test/ 2017-11-01 01:08:11 +00:00
test_paths.cc test: Fix paths for crashpad_tests monolith in Chromium 2017-11-01 17:00:30 +00:00
test_paths.h test: Fix paths for crashpad_tests monolith in Chromium 2017-11-01 17:00:30 +00:00
test_paths_test.cc “Promote” test::Paths::Executable() to Paths::Executable() 2017-04-03 18:58:01 +00:00
test_paths_test_data_root.txt “Promote” test::Paths::Executable() to Paths::Executable() 2017-04-03 18:58:01 +00:00
test_test.gyp “Promote” test::Paths::Executable() to Paths::Executable() 2017-04-03 18:58:01 +00:00