From: Timo Sirainen Date: Wed, 28 Jun 2017 20:37:22 +0000 (+0300) Subject: lib: Fix file_create_locked() unit test to delete temp file afterwards X-Git-Tag: 2.3.0.rc1~1352 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=739bebfce2db4131cc137dafef0a796292fbf0d7;p=thirdparty%2Fdovecot%2Fcore.git lib: Fix file_create_locked() unit test to delete temp file afterwards Also removed a path string that was never used. --- diff --git a/src/lib/test-file-create-locked.c b/src/lib/test-file-create-locked.c index 0b16819c19..b920c0c31a 100644 --- a/src/lib/test-file-create-locked.c +++ b/src/lib/test-file-create-locked.c @@ -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(); } @@ -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;