]> git.lizzy.rs Git - minetest.git/blobdiff - src/unittest/test_filepath.cpp
Fix segfault in deprecation logging due to tail call, log by default (#10174)
[minetest.git] / src / unittest / test_filepath.cpp
index 6ea7ac0768d3c3b20a2f28c267b2082747b08176..ac2d69b5a443b4a5e85ce132dbe1cf64f7fcd152 100644 (file)
@@ -252,6 +252,9 @@ void TestFilePath::testRemoveRelativePathComponent()
        path = p(".");
        result = fs::RemoveRelativePathComponents(path);
        UASSERT(result == "");
+       path = p("../a");
+       result = fs::RemoveRelativePathComponents(path);
+       UASSERT(result == "");
        path = p("./subdir/../..");
        result = fs::RemoveRelativePathComponents(path);
        UASSERT(result == "");