summaryrefslogtreecommitdiff
path: root/src/journal/test-journal-send.c
diff options
context:
space:
mode:
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;
}