mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Fixed filepath temp test.
This commit is contained in:
@@ -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() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user