updated build system
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2024-08-04 16:58:28 -05:00
parent a140f59acb
commit c847353baf

View File

@ -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) {