forked from enlightenment/efl
fix elm fsel test to check mkdir return
this should fix CID 1040043
This commit is contained in:
parent
09943e2883
commit
79be27c307
|
@ -68,7 +68,8 @@ static void
|
|||
create_dir_struct(void)
|
||||
{
|
||||
FILE *fp;
|
||||
mkdir("/tmp/test_fs_bt", S_IRWXU);
|
||||
if (mkdir("/tmp/test_fs_bt", S_IRWXU) < 0)
|
||||
printf("make dir /tmp/test_fs_bt failed!\n");
|
||||
fp = fopen("/tmp/test_fs_bt/a_file.txt", "w");
|
||||
if (fp) fclose(fp);
|
||||
fp = fopen("/tmp/test_fs_bt/k_file.txt", "w");
|
||||
|
@ -76,7 +77,8 @@ create_dir_struct(void)
|
|||
fp = fopen("/tmp/test_fs_bt/m_file.txt", "w");
|
||||
if (fp) fclose(fp);
|
||||
|
||||
mkdir("/tmp/test_fs_bt/a_subdir", S_IRWXU);
|
||||
if (mkdir("/tmp/test_fs_bt/a_subdir", S_IRWXU) < 0)
|
||||
printf("make dir /tmp/test_fs_bt/a_subdir failed!\n");
|
||||
fp = fopen("/tmp/test_fs_bt/a_subdir/d_sub_file.txt", "w");
|
||||
if (fp) fclose(fp);
|
||||
fp = fopen("/tmp/test_fs_bt/a_subdir/j_sub_file.txt", "w");
|
||||
|
|
Loading…
Reference in New Issue