summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-10-25 01:19:24 +0200
committerLennart Poettering <lennart@poettering.net>2012-10-25 01:24:44 +0200
commitd99ae53a7327e1520ea4b9a3408c2d7f938c4b37 (patch)
tree52754f0a756cc93c32099dad6f76ac93779626df /src/journal
parentcae356ad49b505a5172d4dbb830d7ec8f32a9953 (diff)
journal: properly serialize fields with multiple values into JSON
This now matches the JSON serialization spec from: http://www.freedesktop.org/wiki/Software/systemd/json
Diffstat (limited to 'src/journal')
-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 168c84365b..9bf42f9b8d 100644
--- a/src/journal/test-journal-send.c
+++ b/src/journal/test-journal-send.c
@@ -47,5 +47,15 @@ int main(int argc, char *argv[]) {
huge,
NULL);
+ sd_journal_send("MESSAGE=uiui",
+ "VALUE=A",
+ "VALUE=B",
+ "VALUE=C",
+ "SINGLETON=1",
+ "OTHERVALUE=X",
+ "OTHERVALUE=Y",
+ "WITH_BINARY=this is a binary value \a",
+ NULL);
+
return 0;
}