Browse Source

Fixed filepath temp test.

Бранимир Караџић 1 year ago
parent
commit
8642f70011
1 changed files with 6 additions and 2 deletions
  1. 6 2
      tests/filepath_test.cpp

+ 6 - 2
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() );
 }