From c9e29d385b601ae16fd494f2a7134777c3794d8d Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 26 Feb 2009 20:00:46 +0100 Subject: fixed building of tests (must build objects first!) --- tests/log/GNUmakefile | 6 +++--- tests/log/test_log.c | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'tests/log') diff --git a/tests/log/GNUmakefile b/tests/log/GNUmakefile index fc0fd7b..cfb735f 100644 --- a/tests/log/GNUmakefile +++ b/tests/log/GNUmakefile @@ -11,11 +11,11 @@ INCLUDE_DIRS = \ TEST_BINS = \ test_log$(EXE) -test_log$(EXE): test_log.o +#test_log$(EXE): test_log.o -include $(TOPDIR)/makefiles/gmake/sub.mk -testd: $(TOPDIR)/src/libwolf.a +#testd: $(TOPDIR)/src/libwolf.a local_test: @echo "Testing log.." @@ -24,6 +24,6 @@ local_test: local_all: local_clean: - -rm -f test.log + @-rm -f test.log local_distclean: diff --git a/tests/log/test_log.c b/tests/log/test_log.c index 9af31a2..318dfa2 100644 --- a/tests/log/test_log.c +++ b/tests/log/test_log.c @@ -10,5 +10,15 @@ int main( void ) { WOLF_LOG_SYSLOG_DEFAULT_OPTIONS ); #endif + WOLF_LOG( WOLF_LOG_NOTICE, "Started the logger" ); + WOLF_LOG( WOLF_LOG_ERR, "This is error %d", 5 ); + WOLF_LOG( WOLF_LOG_DEBUG, "This will not appear" ); + + WOLF_LOG( WOLF_LOG_NOTICE, "Closed the logger" ); + + wolf_log_closelogtosyslog( ); + wolf_log_closelogtofile( ); + wolf_log_closelogtostderr( ); + return EXIT_SUCCESS; } -- cgit v1.2.3-54-g00ecf