Fixed filepath temp test.

This commit is contained in:
Бранимир Караџић
2024-02-20 09:15:54 -08:00
parent 72cec6db36
commit 8642f70011

View File

@@ -123,13 +123,17 @@ TEST_CASE("FilePath temp", "[filepath]")
bx::FilePath tmp(bx::Dir::Temp);
REQUIRE(0 != bx::strCmp(".", tmp.getPath().getPtr() ) );
tmp.set(bx::Dir::Temp);
tmp.join("bx.test");
bx::removeAll(tmp, bx::ErrorIgnore{});
bx::Error err;
tmp.join("test/abvgd/555333/test");
tmp.join("bx.test/abvgd/555333/test");
REQUIRE(bx::makeAll(tmp, &err) );
REQUIRE(err.isOk() );
tmp.set(bx::Dir::Temp);
tmp.join("test");
tmp.join("bx.test");
REQUIRE(bx::removeAll(tmp, &err) );
REQUIRE(err.isOk() );
}