summaryrefslogtreecommitdiffstats
path: root/tests/syslog_lf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/syslog_lf.c')
-rw-r--r--tests/syslog_lf.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/syslog_lf.c b/tests/syslog_lf.c
new file mode 100644
index 00000000..a140244e
--- /dev/null
+++ b/tests/syslog_lf.c
@@ -0,0 +1,9 @@
+/* This tool deliberately logs a message with the a trailing LF */
+#include <stdio.h>
+#include <syslog.h>
+
+int main()
+{
+ syslog(LOG_NOTICE, "test\n");
+ return 0;
+}