From 1deb2bcce148c4744abf281baf72d57e99a8734a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Wed, 4 Sep 2013 18:15:08 +0200 Subject: [PATCH] Test adding a destination twice --- test/test_logging.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_logging.c b/test/test_logging.c index 76d1919..142f565 100644 --- a/test/test_logging.c +++ b/test/test_logging.c @@ -50,6 +50,7 @@ START_TEST (test_logfile_location) dest = uc_log_new_file(FILE_NAME, UC_LL_DEBUG, 1); fail_if(dest == NULL); 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 2\n");