From ea8fa31fc0c9865c91a8872c15610d80d5ac93c4 Mon Sep 17 00:00:00 2001 From: Igor Zinkovsky Date: Tue, 22 May 2012 00:23:26 -0700 Subject: [PATCH] fix fs_symlink_dir test --- test/test-fs.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/test-fs.c b/test/test-fs.c index f3066867c..be962e824 100644 --- a/test/test-fs.c +++ b/test/test-fs.c @@ -1342,7 +1342,11 @@ TEST_IMPL(fs_symlink_dir) { r = uv_fs_lstat(loop, &req, "test_dir_symlink", NULL); ASSERT(r == 0); ASSERT(((struct stat*)req.ptr)->st_mode & S_IFLNK); - ASSERT(((struct stat*)req.ptr)->st_size == 22); +#ifdef _WIN32 + ASSERT(((struct stat*)req.ptr)->st_size == strlen(test_dir + 4)); +#else + ASSERT(((struct stat*)req.ptr)->st_size == strlen(test_dir)); +#endif uv_fs_req_cleanup(&req); r = uv_fs_readlink(loop, &req, "test_dir_symlink", NULL);