Invert check order in log collection because file checking consumes lot of time

parent a2b77426
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment