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

Commit

Permalink
test: fix unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed May 23, 2012
1 parent 5b9c451 commit b19a713
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/test-fs.c
Expand Up @@ -1305,7 +1305,6 @@ TEST_IMPL(fs_symlink) {
TEST_IMPL(fs_symlink_dir) {
uv_fs_t req;
int r;
char src_path_buf[PATHMAX];
char* test_dir;

/* set-up */
Expand All @@ -1320,10 +1319,13 @@ TEST_IMPL(fs_symlink_dir) {
uv_fs_req_cleanup(&req);

#ifdef _WIN32
strcpy(src_path_buf, "\\\\?\\");
uv_cwd(src_path_buf + 4, sizeof(src_path_buf)/sizeof(src_path_buf[0]));
strcat(src_path_buf, "\\test_dir\\");
test_dir = src_path_buf;
{
static char src_path_buf[PATHMAX];
strcpy(src_path_buf, "\\\\?\\");
uv_cwd(src_path_buf + 4, sizeof(src_path_buf));
strcat(src_path_buf, "\\test_dir\\");
test_dir = src_path_buf;
}
#else
test_dir = "test_dir";
#endif
Expand Down

0 comments on commit b19a713

Please sign in to comment.