|
@@ -42,7 +42,7 @@ namespace TestPCKPacker {
|
|
|
|
|
|
TEST_CASE("[PCKPacker] Pack an empty PCK file") {
|
|
|
PCKPacker pck_packer;
|
|
|
- const String output_pck_path = OS::get_singleton()->get_cache_path().path_join("output_empty.pck");
|
|
|
+ const String output_pck_path = TestUtils::get_temp_path("output_empty.pck");
|
|
|
CHECK_MESSAGE(
|
|
|
pck_packer.pck_start(output_pck_path) == OK,
|
|
|
"Starting a PCK file should return an OK error code.");
|
|
@@ -66,7 +66,7 @@ TEST_CASE("[PCKPacker] Pack an empty PCK file") {
|
|
|
|
|
|
TEST_CASE("[PCKPacker] Pack empty with zero alignment invalid") {
|
|
|
PCKPacker pck_packer;
|
|
|
- const String output_pck_path = OS::get_singleton()->get_cache_path().path_join("output_empty.pck");
|
|
|
+ const String output_pck_path = TestUtils::get_temp_path("output_empty.pck");
|
|
|
ERR_PRINT_OFF;
|
|
|
CHECK_MESSAGE(pck_packer.pck_start(output_pck_path, 0) != OK, "PCK with zero alignment should fail.");
|
|
|
ERR_PRINT_ON;
|
|
@@ -74,7 +74,7 @@ TEST_CASE("[PCKPacker] Pack empty with zero alignment invalid") {
|
|
|
|
|
|
TEST_CASE("[PCKPacker] Pack empty with invalid key") {
|
|
|
PCKPacker pck_packer;
|
|
|
- const String output_pck_path = OS::get_singleton()->get_cache_path().path_join("output_empty.pck");
|
|
|
+ const String output_pck_path = TestUtils::get_temp_path("output_empty.pck");
|
|
|
ERR_PRINT_OFF;
|
|
|
CHECK_MESSAGE(pck_packer.pck_start(output_pck_path, 32, "") != OK, "PCK with invalid key should fail.");
|
|
|
ERR_PRINT_ON;
|
|
@@ -82,7 +82,7 @@ TEST_CASE("[PCKPacker] Pack empty with invalid key") {
|
|
|
|
|
|
TEST_CASE("[PCKPacker] Pack a PCK file with some files and directories") {
|
|
|
PCKPacker pck_packer;
|
|
|
- const String output_pck_path = OS::get_singleton()->get_cache_path().path_join("output_with_files.pck");
|
|
|
+ const String output_pck_path = TestUtils::get_temp_path("output_with_files.pck");
|
|
|
CHECK_MESSAGE(
|
|
|
pck_packer.pck_start(output_pck_path) == OK,
|
|
|
"Starting a PCK file should return an OK error code.");
|