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.
2 parents dc197b6 + 3a43057 commit f39c8f7Copy full SHA for f39c8f7
c/tests/test_file_format.c
@@ -810,7 +810,8 @@ test_dump_errors(void)
810
CU_ASSERT_EQUAL_FATAL(ret, TSK_ERR_IO);
811
str = tsk_strerror(ret);
812
CU_ASSERT_TRUE(strlen(str) > 0);
813
- CU_ASSERT_STRING_EQUAL(str, strerror(EACCES));
+ CU_ASSERT_TRUE(
814
+ (strcmp(str, strerror(EACCES)) == 0) || (strcmp(str, strerror(EPERM)) == 0));
815
816
/* open a file in the wrong mode */
817
f = fopen(_tmp_file_name, "r");
0 commit comments