Mercurial > dovecot > core-2.2
changeset 22282:6ea40be7e586
lib: Fix file_create_locked() unit test to delete temp file afterwards
Also removed a path string that was never used.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 28 Jun 2017 23:37:22 +0300 |
parents | c8f9cfc29195 |
children | 1eed0e656df4 |
files | src/lib/test-file-create-locked.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/test-file-create-locked.c Thu Jun 22 01:28:57 2017 +0300 +++ b/src/lib/test-file-create-locked.c Wed Jun 28 23:37:22 2017 +0300 @@ -83,6 +83,7 @@ break; } i_unlink_if_exists(".test-temp-file-create-locked-child"); + i_unlink_if_exists(path); test_end(); } @@ -92,7 +93,7 @@ .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;