tests: split a large failure case for eina_file tests to provide more info

Summary:
each failure case should always be separate in order to provide the highest
degree of detail available if a test fails

Reviewers: devilhorns, ManMower

Reviewed By: ManMower

Subscribers: ManMower, cedric, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6373
This commit is contained in:
Mike Blumenkrantz 2018-06-25 15:18:23 -04:00
parent 83bab7cab4
commit 32cebe903d
1 changed files with 3 additions and 1 deletions

View File

@ -774,7 +774,9 @@ EFL_START_TEST(eina_test_file_mktemp)
errno = 0;
tmpfile = NULL;
fd = eina_file_mkstemp(patterns[k], &tmpfile);
fail_if((fd < 0) || !tmpfile || errno);
ck_assert(fd >= 0);
ck_assert(!!tmpfile);
ck_assert_msg(!errno, "ERROR(%s): %s\n", patterns[k], strerror(errno));
file = eina_file_open(tmpfile, EINA_FALSE);
fail_if(!file);
eina_file_close(file);