Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Add test for uv_fs_readdir sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Sep 4, 2011
1 parent 142a702 commit 7ccc747
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test-fs.c
Expand Up @@ -540,6 +540,10 @@ TEST_IMPL(fs_async_dir) {
uv_run(loop);
ASSERT(readdir_cb_count == 1);

/* sync uv_fs_readdir */
r = uv_fs_readdir(loop, &readdir_req, "test_dir", 0, NULL);
readdir_cb(&readdir_req);

r = uv_fs_stat(loop, &stat_req, "test_dir", stat_cb);
ASSERT(r == 0);
uv_run(loop);
Expand Down Expand Up @@ -1050,4 +1054,4 @@ TEST_IMPL(fs_symlink) {
unlink("test_file_symlink2_symlink");

return 0;
}
}

0 comments on commit 7ccc747

Please sign in to comment.