Index: src/client/linux/minidump_writer/linux_core_dumper_unittest.cc |
diff --git a/src/client/linux/minidump_writer/linux_core_dumper_unittest.cc b/src/client/linux/minidump_writer/linux_core_dumper_unittest.cc |
index 8f6a423ee04fc4b613d9b6cbcfc32b4c04fef086..ae0c965b34d1d3d5fdbc6175c29624820f65f2bd 100644 |
--- a/src/client/linux/minidump_writer/linux_core_dumper_unittest.cc |
+++ b/src/client/linux/minidump_writer/linux_core_dumper_unittest.cc |
@@ -39,6 +39,16 @@ |
using namespace google_breakpad; |
+TEST(LinuxCoreDumperTest, GetMappingAbsolutePath) { |
+ const LinuxCoreDumper dumper(getpid(), "core", "/tmp", "/mnt/root"); |
+ const MappingInfo mapping = { 0, 0, 0, false, "/usr/lib/libc.so" }; |
+ |
+ char path[PATH_MAX]; |
+ dumper.GetMappingAbsolutePath(mapping, path); |
+ |
+ EXPECT_STREQ("/mnt/root/usr/lib/libc.so", path); |
+} |
+ |
TEST(LinuxCoreDumperTest, BuildProcPath) { |
const pid_t pid = getpid(); |
const char procfs_path[] = "/procfs_copy"; |