Test adding a destination twice

This commit is contained in:
Nils O. Selåsdal
2013-09-04 18:15:08 +02:00
parent 216dfe879d
commit 1deb2bcce1
+1
View File
@@ -50,6 +50,7 @@ START_TEST (test_logfile_location)
dest = uc_log_new_file(FILE_NAME, UC_LL_DEBUG, 1); dest = uc_log_new_file(FILE_NAME, UC_LL_DEBUG, 1);
fail_if(dest == NULL); fail_if(dest == NULL);
uc_log_add_destination(dest); uc_log_add_destination(dest);
uc_log_add_destination(dest); //adding this twice should do nothing
UC_LOGF(UC_LL_DEBUG, 0, "Lorum ipson %d\n", 1); UC_LOGF(UC_LL_DEBUG, 0, "Lorum ipson %d\n", 1);
UC_LOGF(UC_LL_DEBUG, 0, "Lorum ipson 2\n"); UC_LOGF(UC_LL_DEBUG, 0, "Lorum ipson 2\n");