From 8642f70011f3c77aad5572cf90b63cbf9e79050e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Tue, 20 Feb 2024 09:15:54 -0800 Subject: [PATCH] Fixed filepath temp test. --- tests/filepath_test.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/filepath_test.cpp b/tests/filepath_test.cpp index 3884216..4f2925e 100644 --- a/tests/filepath_test.cpp +++ b/tests/filepath_test.cpp @@ -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() ); }