# HG changeset patch # User Timo Sirainen # Date 1498682242 -10800 # Node ID 6ea40be7e586ff9cea4139d8e127bfa685e6d390 # Parent c8f9cfc291955243f4b35c8afe479d3a096f3fd7 lib: Fix file_create_locked() unit test to delete temp file afterwards Also removed a path string that was never used. diff -r c8f9cfc29195 -r 6ea40be7e586 src/lib/test-file-create-locked.c --- 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;