We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 488b02b commit 9b320a3Copy full SHA for 9b320a3
c/tests/test_file_format.c
@@ -872,7 +872,8 @@ test_load_bad_file_formats(void)
872
ret = tsk_table_collection_dump(&tables, _tmp_file_name, 0);
873
CU_ASSERT_EQUAL_FATAL(ret, 0);
874
875
- truncate(_tmp_file_name, offset);
+ ret2 = truncate(_tmp_file_name, offset);
876
+ CU_ASSERT_EQUAL_FATAL(ret2, 0);
877
ret = tsk_table_collection_load(&tables, _tmp_file_name, TSK_NO_INIT);
878
CU_ASSERT_EQUAL_FATAL(ret ^ (1 << TSK_KAS_ERR_BIT), KAS_ERR_BAD_FILE_FORMAT);
879
tsk_table_collection_free(&tables);
0 commit comments