forked from mirrors/linphone-iphone
Invert check order in log collection because file checking consumes lot of time
This commit is contained in:
parent
a2b77426c6
commit
570ed0f598
1 changed files with 4 additions and 4 deletions
|
|
@ -161,7 +161,7 @@ static void collect_files_filled() {
|
|||
LinphoneCoreManager* marie = setup(TRUE);
|
||||
char * filepath = linphone_core_compress_log_collection(marie->lc);
|
||||
CU_ASSERT_PTR_NOT_NULL(filepath);
|
||||
CU_ASSERT_EQUAL(ms_time(0), check_file(filepath));
|
||||
CU_ASSERT_EQUAL(check_file(filepath), ms_time(0));
|
||||
linphone_core_manager_destroy(marie);
|
||||
}
|
||||
|
||||
|
|
@ -171,7 +171,7 @@ static void collect_files_small_size() {
|
|||
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));
|
||||
CU_ASSERT_EQUAL(check_file(filepath), ms_time(0));
|
||||
linphone_core_manager_destroy(marie);
|
||||
}
|
||||
|
||||
|
|
@ -182,7 +182,7 @@ static void collect_files_changing_size() {
|
|||
|
||||
filepath = linphone_core_compress_log_collection(marie->lc);
|
||||
CU_ASSERT_PTR_NOT_NULL(filepath);
|
||||
CU_ASSERT_EQUAL(ms_time(0), check_file(filepath));
|
||||
CU_ASSERT_EQUAL(check_file(filepath), ms_time(0));
|
||||
|
||||
linphone_core_set_log_collection_max_file_size(5000);
|
||||
// Generate some logs
|
||||
|
|
@ -190,7 +190,7 @@ static void collect_files_changing_size() {
|
|||
|
||||
filepath = linphone_core_compress_log_collection(marie->lc);
|
||||
CU_ASSERT_PTR_NOT_NULL(filepath);
|
||||
CU_ASSERT_EQUAL(ms_time(0), check_file(filepath));
|
||||
CU_ASSERT_EQUAL(check_file(filepath), ms_time(0));
|
||||
|
||||
linphone_core_manager_destroy(marie);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue