test: fix unused variable warning
This commit is contained in:
parent
5b9c45120a
commit
b19a713cfc
@ -1305,7 +1305,6 @@ TEST_IMPL(fs_symlink) {
|
|||||||
TEST_IMPL(fs_symlink_dir) {
|
TEST_IMPL(fs_symlink_dir) {
|
||||||
uv_fs_t req;
|
uv_fs_t req;
|
||||||
int r;
|
int r;
|
||||||
char src_path_buf[PATHMAX];
|
|
||||||
char* test_dir;
|
char* test_dir;
|
||||||
|
|
||||||
/* set-up */
|
/* set-up */
|
||||||
@ -1320,10 +1319,13 @@ TEST_IMPL(fs_symlink_dir) {
|
|||||||
uv_fs_req_cleanup(&req);
|
uv_fs_req_cleanup(&req);
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
{
|
||||||
|
static char src_path_buf[PATHMAX];
|
||||||
strcpy(src_path_buf, "\\\\?\\");
|
strcpy(src_path_buf, "\\\\?\\");
|
||||||
uv_cwd(src_path_buf + 4, sizeof(src_path_buf)/sizeof(src_path_buf[0]));
|
uv_cwd(src_path_buf + 4, sizeof(src_path_buf));
|
||||||
strcat(src_path_buf, "\\test_dir\\");
|
strcat(src_path_buf, "\\test_dir\\");
|
||||||
test_dir = src_path_buf;
|
test_dir = src_path_buf;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
test_dir = "test_dir";
|
test_dir = "test_dir";
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user