diff --git a/test/testpath.cpp b/test/testpath.cpp index 89706fd5d..0263f010f 100644 --- a/test/testpath.cpp +++ b/test/testpath.cpp @@ -82,6 +82,8 @@ private: ASSERT_EQUALS(false, Path::isAbsolute("foo.cpp")); ASSERT_EQUALS(false, Path::isAbsolute("C:foo.cpp")); ASSERT_EQUALS(false, Path::isAbsolute("C:foo\\bar.cpp")); + ASSERT_EQUALS(false, Path::isAbsolute("bar.cpp")); + TODO_ASSERT_EQUALS(true, false, Path::isAbsolute("\\")); #else ASSERT_EQUALS(true, Path::isAbsolute("/foo/bar")); ASSERT_EQUALS(true, Path::isAbsolute("/")); @@ -91,7 +93,7 @@ private: } void getRelative() const { - std::vector basePaths = { + const std::vector basePaths = { "", // Don't crash with empty paths "C:/foo", "C:/bar/",