tr_sys_file_close(fd, NULL);
tr_sys_path_remove(path2, NULL);
+ tr_sys_path_remove(path1, NULL);
/* Good directory info */
t = time(NULL);
tr_sys_dir_create(path2, 0, 0777, NULL);
+ check(create_symlink(path1, path2, true)); /* Win32: directory and file symlinks differ :( */
clear_path_info(&info);
check(tr_sys_path_get_info(path1, 0, &info, &err));
check_ptr(err, ==, NULL);
check_ptr(err, ==, NULL);
tr_sys_path_remove(path2, NULL);
+ tr_sys_path_remove(path1, NULL);
/* Create directory and see that it exists (via symlink) */
tr_sys_dir_create(path2, 0, 0777, NULL);
+ check(create_symlink(path1, path2, true)); /* Win32: directory and file symlinks differ :( */
check(tr_sys_path_exists(path1, &err));
check_ptr(err, ==, NULL);
check(path_contains_no_symlinks(tmp));
tr_free(tmp);
+ tr_sys_path_remove(path2, NULL);
tr_sys_path_remove(path1, NULL);
- tr_sys_dir_create(path1, 0, 0755, NULL);
+ tr_sys_dir_create(path1, 0, 0755, NULL);
+ check(create_symlink(path2, path1, true)); /* Win32: directory and file symlinks differ :( */
tmp = tr_sys_path_resolve(path2, &err);
check_str(tmp, !=, NULL);
check_ptr(err, ==, NULL);