From e14977deeabe7c14a1744ad76650c2256f202e9e Mon Sep 17 00:00:00 2001 From: hadaq Date: Thu, 1 Aug 2002 09:24:53 +0000 Subject: [PATCH] Some more test cases --- compat/examples/Makefile | 2 +- compat/examples/testsyslog.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/compat/examples/Makefile b/compat/examples/Makefile index 9dbbacd..ddc1658 100644 --- a/compat/examples/Makefile +++ b/compat/examples/Makefile @@ -5,7 +5,7 @@ INCDIR = ../ LIBDIR = ../ CFLAGS = -g -I$(INCDIR) -DLOG_PERROR_DOESNT_WORK -LOADLIBES = -L$(LIBDIR) -lcompat -lnetinet +LOADLIBES = -L$(LIBDIR) -lcompat #-lnetinet all: testsyslog diff --git a/compat/examples/testsyslog.c b/compat/examples/testsyslog.c index a223522..1507843 100644 --- a/compat/examples/testsyslog.c +++ b/compat/examples/testsyslog.c @@ -6,6 +6,13 @@ int main(int argc, char *argv[]) { syslog(LOG_INFO, "Hello, World!"); syslog(LOG_INFO, "%d, %d, %d, %s", 1, 2, 3, "viele"); syslog(LOG_DEBUG, "This is a debug message"); + syslog(LOG_INFO, "This is a info message"); + syslog(LOG_NOTICE, "This is a notice message"); + syslog(LOG_WARNING, "This is a warning message"); + syslog(LOG_ERR, "This is a err message"); + syslog(LOG_CRIT, "This is a crit message"); + syslog(LOG_ALERT, "This is a alert message"); + syslog(LOG_EMERG, "This is a emerg message"); closelog(); return 0; -- 2.43.0