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");
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");