"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/test-file-create-locked.c" between
dovecot-2.3.16.tar.gz and dovecot-2.3.17.tar.gz

About: Dovecot is an IMAP and POP3 server, written with security primarily in mind.

test-file-create-locked.c  (dovecot-2.3.16):test-file-create-locked.c  (dovecot-2.3.17)
skipping to change at line 46 skipping to change at line 46
i_sleep_msecs(10); i_sleep_msecs(10);
} }
i_error("%s isn't being created", path); i_error("%s isn't being created", path);
return FALSE; return FALSE;
} }
static void test_file_create_locked_basic(void) static void test_file_create_locked_basic(void)
{ {
struct file_create_settings set = { struct file_create_settings set = {
.lock_timeout_secs = 0, .lock_timeout_secs = 0,
.lock_method = FILE_LOCK_METHOD_FCNTL, .lock_settings = {
.lock_method = FILE_LOCK_METHOD_FCNTL,
},
}; };
const char *path = ".test-file-create-locked"; const char *path = ".test-file-create-locked";
struct file_lock *lock; struct file_lock *lock;
const char *error; const char *error;
bool created; bool created;
pid_t pid; pid_t pid;
int fd; int fd;
test_begin("file_create_locked()"); test_begin("file_create_locked()");
skipping to change at line 95 skipping to change at line 97
} }
i_unlink_if_exists(".test-temp-file-create-locked-child"); i_unlink_if_exists(".test-temp-file-create-locked-child");
i_unlink_if_exists(path); i_unlink_if_exists(path);
test_end(); test_end();
} }
static void test_file_create_locked_mkdir(void) static void test_file_create_locked_mkdir(void)
{ {
struct file_create_settings set = { struct file_create_settings set = {
.lock_timeout_secs = 0, .lock_timeout_secs = 0,
.lock_method = FILE_LOCK_METHOD_FCNTL, .lock_settings = {
.lock_method = FILE_LOCK_METHOD_FCNTL,
},
}; };
const char *path; const char *path;
struct file_lock *lock; struct file_lock *lock;
const char *error, *dir; const char *error, *dir;
bool created; bool created;
int fd; int fd;
test_begin("file_create_locked() with mkdir"); test_begin("file_create_locked() with mkdir");
dir = ".test-temp-file-create-locked-dir"; dir = ".test-temp-file-create-locked-dir";
 End of changes. 2 change blocks. 
2 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)