Commit 71ae1719 authored by Joe Lee's avatar Joe Lee

Resolve "ambiguous else" warning in mingw build

parent 097abae3
......@@ -30,9 +30,11 @@ namespace {
TEST(Exception, TrimSourceFilename) {
#if _WIN32
if (trimSourceFilename(__FILE__) != "kj\\exception-test.c++")
#endif
EXPECT_TRUE(trimSourceFilename(__FILE__) == "kj/exception-test.c++" ||
trimSourceFilename(__FILE__) == "kj\\exception-test.c++");
#else
EXPECT_EQ(trimSourceFilename(__FILE__), "kj/exception-test.c++");
#endif
}
TEST(Exception, RunCatchingExceptions) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment