mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-25 15:18:11 +00:00
Fix log collection test: 1000 bytes for 25 lines in a file is a little undersized (actually, it fits 24 lines!)
This commit is contained in:
parent
52312c0361
commit
77f4e6d2d6
1 changed files with 3 additions and 3 deletions
|
|
@ -72,7 +72,7 @@ time_t check_file(char * filepath) {
|
|||
}
|
||||
}
|
||||
}
|
||||
CU_ASSERT(line_count > 25);
|
||||
CU_ASSERT_TRUE(line_count > 25);
|
||||
free(line);
|
||||
fclose(file);
|
||||
ms_free(filepath);
|
||||
|
|
@ -111,7 +111,7 @@ static void collect_files_filled() {
|
|||
static void collect_files_small_size() {
|
||||
LinphoneCoreManager* marie = setup(TRUE);
|
||||
char * filepath;
|
||||
linphone_core_set_log_collection_max_file_size(1000);
|
||||
linphone_core_set_log_collection_max_file_size(5000);
|
||||
filepath = linphone_core_compress_log_collection(marie->lc);
|
||||
CU_ASSERT_PTR_NOT_NULL(filepath);
|
||||
CU_ASSERT_EQUAL(ms_time(0), check_file(filepath));
|
||||
|
|
@ -127,7 +127,7 @@ static void collect_files_changing_size() {
|
|||
CU_ASSERT_PTR_NOT_NULL(filepath);
|
||||
CU_ASSERT_EQUAL(ms_time(0), check_file(filepath));
|
||||
|
||||
linphone_core_set_log_collection_max_file_size(1000);
|
||||
linphone_core_set_log_collection_max_file_size(5000);
|
||||
// Generate some logs
|
||||
while (--waiting) ms_error("(test error)Waiting %d...", waiting);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue