Skip to content

Commit

Permalink
lib: Fix file_create_locked() unit test to delete temp file afterwards
Browse files Browse the repository at this point in the history
Also removed a path string that was never used.
  • Loading branch information
sirainen committed Jul 3, 2017
1 parent 5a661d7 commit b16614d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/test-file-create-locked.c
Expand Up @@ -83,6 +83,7 @@ static void test_file_create_locked_basic(void)
break;
}
i_unlink_if_exists(".test-temp-file-create-locked-child");
i_unlink_if_exists(path);
test_end();
}

Expand All @@ -92,7 +93,7 @@ static void test_file_create_locked_mkdir(void)
.lock_timeout_secs = 0,
.lock_method = FILE_LOCK_METHOD_FCNTL,
};
const char *path = ".test-file-create-locked";
const char *path;
struct file_lock *lock;
const char *error, *dir;
bool created;
Expand Down

0 comments on commit b16614d

Please sign in to comment.