diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-13 17:19:20 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-13 17:19:20 +0200 |
commit | fe61f94c7ed6a9eb3fb6cb17026a9060afbe75a5 (patch) | |
tree | 0c3271a2213c42b956dda59fb076c6598df5586e /tests/core/io/test_resource.h | |
parent | e15c2e051e4d5b2257b5ea24e466b4056d8c2310 (diff) | |
parent | 5514b2c70c28a6133459075f85746fe05aaecc68 (diff) | |
download | redot-engine-fe61f94c7ed6a9eb3fb6cb17026a9060afbe75a5.tar.gz |
Merge pull request #92810 from KoBeWi/redirect_tests_to_dev/null
Use subfolder for temporary test files
Diffstat (limited to 'tests/core/io/test_resource.h')
-rw-r--r-- | tests/core/io/test_resource.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/core/io/test_resource.h b/tests/core/io/test_resource.h index a83e7f88ba..cb1fa290b3 100644 --- a/tests/core/io/test_resource.h +++ b/tests/core/io/test_resource.h @@ -76,8 +76,8 @@ TEST_CASE("[Resource] Saving and loading") { Ref<Resource> child_resource = memnew(Resource); child_resource->set_name("I'm a child resource"); resource->set_meta("other_resource", child_resource); - const String save_path_binary = OS::get_singleton()->get_cache_path().path_join("resource.res"); - const String save_path_text = OS::get_singleton()->get_cache_path().path_join("resource.tres"); + const String save_path_binary = TestUtils::get_temp_path("resource.res"); + const String save_path_text = TestUtils::get_temp_path("resource.tres"); ResourceSaver::save(resource, save_path_binary); ResourceSaver::save(resource, save_path_text); @@ -123,8 +123,8 @@ TEST_CASE("[Resource] Breaking circular references on save") { resource_b->set_meta("next", resource_c); resource_c->set_meta("next", resource_b); - const String save_path_binary = OS::get_singleton()->get_cache_path().path_join("resource.res"); - const String save_path_text = OS::get_singleton()->get_cache_path().path_join("resource.tres"); + const String save_path_binary = TestUtils::get_temp_path("resource.res"); + const String save_path_text = TestUtils::get_temp_path("resource.tres"); ResourceSaver::save(resource_a, save_path_binary); // Suppress expected errors caused by the resources above being uncached. ERR_PRINT_OFF; |