|
@ -387,7 +387,6 @@ TEST_IMPL(fs_file_noent) { |
|
|
uv_fs_t req; |
|
|
uv_fs_t req; |
|
|
int r; |
|
|
int r; |
|
|
|
|
|
|
|
|
uv_init(); |
|
|
|
|
|
loop = uv_default_loop(); |
|
|
loop = uv_default_loop(); |
|
|
|
|
|
|
|
|
r = uv_fs_open(loop, &req, "does_not_exist", O_RDONLY, 0, NULL); |
|
|
r = uv_fs_open(loop, &req, "does_not_exist", O_RDONLY, 0, NULL); |
|
@ -476,7 +475,6 @@ TEST_IMPL(fs_file_async) { |
|
|
unlink("test_file"); |
|
|
unlink("test_file"); |
|
|
unlink("test_file2"); |
|
|
unlink("test_file2"); |
|
|
|
|
|
|
|
|
uv_init(); |
|
|
|
|
|
loop = uv_default_loop(); |
|
|
loop = uv_default_loop(); |
|
|
|
|
|
|
|
|
r = uv_fs_open(loop, &open_req1, "test_file", O_WRONLY | O_CREAT, |
|
|
r = uv_fs_open(loop, &open_req1, "test_file", O_WRONLY | O_CREAT, |
|
@ -539,7 +537,6 @@ TEST_IMPL(fs_file_sync) { |
|
|
unlink("test_file"); |
|
|
unlink("test_file"); |
|
|
unlink("test_file2"); |
|
|
unlink("test_file2"); |
|
|
|
|
|
|
|
|
uv_init(); |
|
|
|
|
|
loop = uv_default_loop(); |
|
|
loop = uv_default_loop(); |
|
|
|
|
|
|
|
|
r = uv_fs_open(loop, &open_req1, "test_file", O_WRONLY | O_CREAT, |
|
|
r = uv_fs_open(loop, &open_req1, "test_file", O_WRONLY | O_CREAT, |
|
@ -625,7 +622,6 @@ TEST_IMPL(fs_async_dir) { |
|
|
unlink("test_dir/file2"); |
|
|
unlink("test_dir/file2"); |
|
|
rmdir("test_dir"); |
|
|
rmdir("test_dir"); |
|
|
|
|
|
|
|
|
uv_init(); |
|
|
|
|
|
loop = uv_default_loop(); |
|
|
loop = uv_default_loop(); |
|
|
|
|
|
|
|
|
r = uv_fs_mkdir(loop, &mkdir_req, "test_dir", 0755, mkdir_cb); |
|
|
r = uv_fs_mkdir(loop, &mkdir_req, "test_dir", 0755, mkdir_cb); |
|
@ -713,7 +709,6 @@ TEST_IMPL(fs_async_sendfile) { |
|
|
struct stat s1, s2; |
|
|
struct stat s1, s2; |
|
|
|
|
|
|
|
|
/* Setup. */ |
|
|
/* Setup. */ |
|
|
uv_init(); |
|
|
|
|
|
unlink("test_file"); |
|
|
unlink("test_file"); |
|
|
unlink("test_file2"); |
|
|
unlink("test_file2"); |
|
|
|
|
|
|
|
@ -781,8 +776,6 @@ TEST_IMPL(fs_fstat) { |
|
|
/* Setup. */ |
|
|
/* Setup. */ |
|
|
unlink("test_file"); |
|
|
unlink("test_file"); |
|
|
|
|
|
|
|
|
uv_init(); |
|
|
|
|
|
|
|
|
|
|
|
loop = uv_default_loop(); |
|
|
loop = uv_default_loop(); |
|
|
|
|
|
|
|
|
r = uv_fs_open(loop, &req, "test_file", O_RDWR | O_CREAT, |
|
|
r = uv_fs_open(loop, &req, "test_file", O_RDWR | O_CREAT, |
|
@ -837,8 +830,6 @@ TEST_IMPL(fs_chmod) { |
|
|
/* Setup. */ |
|
|
/* Setup. */ |
|
|
unlink("test_file"); |
|
|
unlink("test_file"); |
|
|
|
|
|
|
|
|
uv_init(); |
|
|
|
|
|
|
|
|
|
|
|
loop = uv_default_loop(); |
|
|
loop = uv_default_loop(); |
|
|
|
|
|
|
|
|
r = uv_fs_open(loop, &req, "test_file", O_RDWR | O_CREAT, |
|
|
r = uv_fs_open(loop, &req, "test_file", O_RDWR | O_CREAT, |
|
@ -926,8 +917,6 @@ TEST_IMPL(fs_chown) { |
|
|
/* Setup. */ |
|
|
/* Setup. */ |
|
|
unlink("test_file"); |
|
|
unlink("test_file"); |
|
|
|
|
|
|
|
|
uv_init(); |
|
|
|
|
|
|
|
|
|
|
|
loop = uv_default_loop(); |
|
|
loop = uv_default_loop(); |
|
|
|
|
|
|
|
|
r = uv_fs_open(loop, &req, "test_file", O_RDWR | O_CREAT, |
|
|
r = uv_fs_open(loop, &req, "test_file", O_RDWR | O_CREAT, |
|
@ -987,8 +976,6 @@ TEST_IMPL(fs_link) { |
|
|
unlink("test_file_link"); |
|
|
unlink("test_file_link"); |
|
|
unlink("test_file_link2"); |
|
|
unlink("test_file_link2"); |
|
|
|
|
|
|
|
|
uv_init(); |
|
|
|
|
|
|
|
|
|
|
|
loop = uv_default_loop(); |
|
|
loop = uv_default_loop(); |
|
|
|
|
|
|
|
|
r = uv_fs_open(loop, &req, "test_file", O_RDWR | O_CREAT, |
|
|
r = uv_fs_open(loop, &req, "test_file", O_RDWR | O_CREAT, |
|
@ -1073,8 +1060,6 @@ TEST_IMPL(fs_symlink) { |
|
|
unlink("test_file_symlink_symlink"); |
|
|
unlink("test_file_symlink_symlink"); |
|
|
unlink("test_file_symlink2_symlink"); |
|
|
unlink("test_file_symlink2_symlink"); |
|
|
|
|
|
|
|
|
uv_init(); |
|
|
|
|
|
|
|
|
|
|
|
loop = uv_default_loop(); |
|
|
loop = uv_default_loop(); |
|
|
|
|
|
|
|
|
r = uv_fs_open(loop, &req, "test_file", O_RDWR | O_CREAT, |
|
|
r = uv_fs_open(loop, &req, "test_file", O_RDWR | O_CREAT, |
|
@ -1187,7 +1172,6 @@ TEST_IMPL(fs_utime) { |
|
|
uv_fs_t req; |
|
|
uv_fs_t req; |
|
|
int r; |
|
|
int r; |
|
|
|
|
|
|
|
|
uv_init(); |
|
|
|
|
|
loop = uv_default_loop(); |
|
|
loop = uv_default_loop(); |
|
|
|
|
|
|
|
|
atime = mtime = 400497753; /* 1982-09-10 11:22:33 */ |
|
|
atime = mtime = 400497753; /* 1982-09-10 11:22:33 */ |
|
@ -1228,7 +1212,6 @@ TEST_IMPL(fs_futime) { |
|
|
uv_fs_t req; |
|
|
uv_fs_t req; |
|
|
int r; |
|
|
int r; |
|
|
|
|
|
|
|
|
uv_init(); |
|
|
|
|
|
loop = uv_default_loop(); |
|
|
loop = uv_default_loop(); |
|
|
|
|
|
|
|
|
atime = mtime = 400497753; /* 1982-09-10 11:22:33 */ |
|
|
atime = mtime = 400497753; /* 1982-09-10 11:22:33 */ |
|
|