From 5f82aa8f08a44ddcb3eb88606f815a518a329aa4 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 11 May 2015 11:44:56 -0300 Subject: [PATCH] Fix split_filename_tests on OS X and Unix-like platforms --- src/app/file/split_filename_tests.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/file/split_filename_tests.cpp b/src/app/file/split_filename_tests.cpp index 359e63bba..a02a18fde 100644 --- a/src/app/file/split_filename_tests.cpp +++ b/src/app/file/split_filename_tests.cpp @@ -9,6 +9,8 @@ #include "app/file/split_filename.h" +#include "base/path.h" + using namespace app; TEST(SplitFilename, Common) @@ -17,7 +19,7 @@ TEST(SplitFilename, Common) int width; EXPECT_EQ(1, split_filename("C:\\test\\a1.png", left, right, width)); - EXPECT_EQ("C:\\test\\a", left); + EXPECT_EQ(base::fix_path_separators("C:\\test\\a"), base::fix_path_separators(left)); EXPECT_EQ(".png", right); EXPECT_EQ(1, width);