summaryrefslogtreecommitdiff
path: root/src/journal/test-journal-send.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-10-03 11:37:44 -0400
committerLennart Poettering <lennart@poettering.net>2012-10-03 11:55:38 -0400
commit1dfa7e79a60de680086b1d93fcc3629b463f58bd (patch)
tree288401e1a12f4bf633ae7725e7cb0d09201768e2 /src/journal/test-journal-send.c
parent08f9588885c5d65694b324846b0ed19211d2c178 (diff)
journald: only accept fds from certain directories
Diffstat (limited to 'src/journal/test-journal-send.c')
-rw-r--r--src/journal/test-journal-send.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/journal/test-journal-send.c b/src/journal/test-journal-send.c
index e708fa4406..168c84365b 100644
--- a/src/journal/test-journal-send.c
+++ b/src/journal/test-journal-send.c
@@ -24,6 +24,8 @@
#include "log.h"
int main(int argc, char *argv[]) {
+ char huge[4096*1024];
+
log_set_max_level(LOG_DEBUG);
sd_journal_print(LOG_INFO, "piepapo");
@@ -37,5 +39,13 @@ int main(int argc, char *argv[]) {
sd_journal_perror("");
+ memset(huge, 'x', sizeof(huge));
+ memcpy(huge, "HUGE=", 5);
+ char_array_0(huge);
+
+ sd_journal_send("MESSAGE=Huge field attached",
+ huge,
+ NULL);
+
return 0;
}