From abf9a01fd82c63baa0f78648f99333a6e02705ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Thu, 8 Nov 2012 01:07:17 +0100 Subject: [PATCH] test_logging, write many times to /dev/full --- test/test_logging.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/test_logging.c b/test/test_logging.c index 0e7d98f..2b8a703 100644 --- a/test/test_logging.c +++ b/test/test_logging.c @@ -254,6 +254,7 @@ START_TEST (test_logfile_full_filesystem) .cnt = 1, }; struct uc_log_destination *dest; + int i; uc_log_init(&mods); @@ -262,9 +263,11 @@ START_TEST (test_logfile_full_filesystem) fail_if(dest == NULL, "Cannot open /dev/full"); uc_log_add_destination(dest); - UC_LOGF(UC_LL_DEBUG, 0, "Lorum ipson %d\n", 1); - UC_LOGF(UC_LL_WARNING, 0, "Lorum ipson %d\n", 1); - UC_LOGF(UC_LL_INFO, 0, "Lorum ipson %d\n", 1); + for(i = 0; i < 1024; i++) { + UC_LOGF(UC_LL_DEBUG, 0, "Lorum ipson %d\n", 1); + UC_LOGF(UC_LL_WARNING, 0, "Lorum ipson %d\n", 1); + UC_LOGF(UC_LL_INFO, 0, "Lorum ipson %d\n", 1); + } END_TEST