Skip to content

Commit 835fcc5

Browse files
committed
[test] improve coveralls
1 parent 57f1aae commit 835fcc5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

source/runtest/runtest.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,15 @@ int main(int _argc, char* _argv[])
168168
std::string image0_data_type;
169169
gltf_loader->LoadImageData(0, image0_data, image0_data_type);
170170

171+
std::string gltf_json;
172+
if (!(*loaded_gltf >> gltf_json))
173+
printf("Failed to convert to json!\n");
174+
171175
#if defined(LIBGLTF_BUILD_COVERAGE)
172176
const std::string obj_file_path = input_file_path + ".obj";
173177
SaveAsOBJ(obj_file_path, triangle_data, position_data, texcoord_0_data, normal_data);
174178
#endif
175179

176180
printf("Success\n");
177-
return 0;
181+
return error_code;
178182
}

0 commit comments

Comments
 (0)