test_logging, write many times to /dev/full
This commit is contained in:
@@ -254,6 +254,7 @@ START_TEST (test_logfile_full_filesystem)
|
|||||||
.cnt = 1,
|
.cnt = 1,
|
||||||
};
|
};
|
||||||
struct uc_log_destination *dest;
|
struct uc_log_destination *dest;
|
||||||
|
int i;
|
||||||
|
|
||||||
|
|
||||||
uc_log_init(&mods);
|
uc_log_init(&mods);
|
||||||
@@ -262,9 +263,11 @@ START_TEST (test_logfile_full_filesystem)
|
|||||||
fail_if(dest == NULL, "Cannot open /dev/full");
|
fail_if(dest == NULL, "Cannot open /dev/full");
|
||||||
uc_log_add_destination(dest);
|
uc_log_add_destination(dest);
|
||||||
|
|
||||||
|
for(i = 0; i < 1024; i++) {
|
||||||
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_WARNING, 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);
|
UC_LOGF(UC_LL_INFO, 0, "Lorum ipson %d\n", 1);
|
||||||
|
}
|
||||||
|
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user