Index: util/test/executable_path_test.cc |
diff --git a/util/test/executable_path_test.cc b/util/test/executable_path_test.cc |
index 4c282fac28e7613a60a341ff3f8b262d3ae7248c..54374e34c97425c5d2a6ee64db99f51db4bb33b9 100644 |
--- a/util/test/executable_path_test.cc |
+++ b/util/test/executable_path_test.cc |
@@ -15,6 +15,7 @@ |
#include "util/test/executable_path.h" |
#include "base/files/file_path.h" |
+#include "build/build_config.h" |
#include "gtest/gtest.h" |
namespace crashpad { |
@@ -24,7 +25,11 @@ namespace { |
TEST(ExecutablePath, ExecutablePath) { |
base::FilePath executable_path = ExecutablePath(); |
base::FilePath executable_name = executable_path.BaseName(); |
- EXPECT_EQ(FILE_PATH_LITERAL("util_test"), executable_name.value()); |
+#if defined(OS_WIN) |
+ EXPECT_EQ(FILE_PATH_LITERAL("util_test.exe"), executable_name.value()); |
+#else |
+ EXPECT_EQ("util_test", executable_name.value()); |
+#endif // OS_WIN |
} |
} // namespace |