test_logging, write many times to /dev/full

This commit is contained in:
Nils O. Selåsdal
2012-11-08 01:07:17 +01:00
parent d83c651707
commit abf9a01fd8
+6 -3
View File
@@ -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