updated build system
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
This commit is contained in:
parent
a140f59acb
commit
c847353baf
@ -98,7 +98,6 @@ TEST(utils_path, get_slash) {
|
|||||||
|
|
||||||
TEST(utils_path, combine) {
|
TEST(utils_path, combine) {
|
||||||
auto s = utils::path::combine(R"(\test\path)", {});
|
auto s = utils::path::combine(R"(\test\path)", {});
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
EXPECT_STREQ(R"(\test\path)", s.c_str());
|
EXPECT_STREQ(R"(\test\path)", s.c_str());
|
||||||
#else
|
#else
|
||||||
@ -118,6 +117,20 @@ TEST(utils_path, combine) {
|
|||||||
#else
|
#else
|
||||||
EXPECT_STREQ("/test/path/again", s.c_str());
|
EXPECT_STREQ("/test/path/again", s.c_str());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_WIN32)
|
||||||
|
s = utils::path::combine(R"(R:\test)", {R"(\path)", R"(\again\)"});
|
||||||
|
EXPECT_STREQ(R"(r:\test\path\again)", s.c_str());
|
||||||
|
|
||||||
|
s = utils::path::combine("R:", {R"(\path)", R"(\again\)"});
|
||||||
|
EXPECT_STREQ(R"(r:\path\again)", s.c_str());
|
||||||
|
|
||||||
|
s = utils::path::combine("R:", {});
|
||||||
|
EXPECT_STREQ("r:", s.c_str());
|
||||||
|
|
||||||
|
s = utils::path::combine("R:", {"\\"});
|
||||||
|
EXPECT_STREQ("r:", s.c_str());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(utils_path, format_path) {
|
TEST(utils_path, format_path) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user