summaryrefslogtreecommitdiffstats
path: root/tests/scene/test_node.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-06-13 17:19:20 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-06-13 17:19:20 +0200
commitfe61f94c7ed6a9eb3fb6cb17026a9060afbe75a5 (patch)
tree0c3271a2213c42b956dda59fb076c6598df5586e /tests/scene/test_node.h
parente15c2e051e4d5b2257b5ea24e466b4056d8c2310 (diff)
parent5514b2c70c28a6133459075f85746fe05aaecc68 (diff)
downloadredot-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/scene/test_node.h')
-rw-r--r--tests/scene/test_node.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/scene/test_node.h b/tests/scene/test_node.h
index 2b14be76e2..93ef3fe728 100644
--- a/tests/scene/test_node.h
+++ b/tests/scene/test_node.h
@@ -518,7 +518,7 @@ TEST_CASE("[SceneTree][Node]Exported node checks") {
ps.instantiate();
ps->pack(node);
- String scene_path = OS::get_singleton()->get_cache_path().path_join("test_scene.tscn");
+ String scene_path = TestUtils::get_temp_path("test_scene.tscn");
ps->set_path(scene_path);
Node *root = memnew(Node);
@@ -531,7 +531,7 @@ TEST_CASE("[SceneTree][Node]Exported node checks") {
ps2.instantiate();
ps2->pack(root);
- scene_path = OS::get_singleton()->get_cache_path().path_join("new_test_scene.tscn");
+ scene_path = TestUtils::get_temp_path("new_test_scene.tscn");
ResourceSaver::save(ps2, scene_path);
memdelete(root);