Skip to content

Commit 975bcaa

Browse files
committed
Merge pull request godotengine#109094 from Repiteo/tests/error-output-fix
Fix unfiltered error output in tests
2 parents de2f3d7 + 23accd1 commit 975bcaa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/gltf/tests/test_gltf_images.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@ TEST_CASE("[SceneTree][Node][Editor] Import GLTF from .godot/imported folder wit
108108
EditorFileSystem *efs = memnew(EditorFileSystem);
109109
EditorResourcePreview *erp = memnew(EditorResourcePreview);
110110

111+
ERR_PRINT_OFF
111112
Node *loaded = gltf_import("res://.godot/imported/gltf_placed_in_dot_godot_imported.gltf");
112113
Ref<Texture2D> texture = _check_texture(loaded);
114+
ERR_PRINT_ON
113115

114116
// In-editor imports of gltf and texture from .godot/imported folder should end up in res:// if extract_path is defined.
115117
CHECK_MESSAGE(texture->get_path() == "res://gltf_placed_in_dot_godot_imported_material_albedo000.png", "Texture not parsed as resource.");
@@ -133,8 +135,10 @@ TEST_CASE("[SceneTree][Node][Editor] Import GLTF with texture outside of res://
133135
output->store_buffer(FileAccess::get_file_as_bytes("res://texture_source.png"));
134136
output->close();
135137

138+
ERR_PRINT_OFF
136139
Node *loaded = gltf_import("res://gltf_pointing_to_texture_outside_of_res_folder.gltf");
137140
Ref<Texture2D> texture = _check_texture(loaded);
141+
ERR_PRINT_ON
138142

139143
// Imports of gltf with texture from outside of res:// folder should end up being copied to res://
140144
CHECK_MESSAGE(texture->get_path() == "res://gltf_pointing_to_texture_outside_of_res_folder_material_albedo000.png", "Texture not parsed as resource.");
@@ -150,8 +154,10 @@ TEST_CASE("[SceneTree][Node][Editor] Import GLTF with embedded texture, check ho
150154
EditorFileSystem *efs = memnew(EditorFileSystem);
151155
EditorResourcePreview *erp = memnew(EditorResourcePreview);
152156

157+
ERR_PRINT_OFF
153158
Node *loaded = gltf_import("res://embedded_texture.gltf");
154159
Ref<Texture2D> texture = _check_texture(loaded);
160+
ERR_PRINT_ON
155161

156162
// In-editor imports of texture embedded in file should end up with a resource.
157163
CHECK_MESSAGE(texture->get_path() == "res://embedded_texture_material_albedo000.png", "Texture not parsed as resource.");

0 commit comments

Comments
 (0)