diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-02-26 20:00:46 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-02-26 20:00:46 +0100 |
commit | c9e29d385b601ae16fd494f2a7134777c3794d8d (patch) | |
tree | 726ccd2a79e968a0f1069d6e5d4e7bf4725e09cc /tests/log | |
parent | 4306f2a3630f489ce4f44a52e4d661a6e1065f78 (diff) | |
download | wolfbones-c9e29d385b601ae16fd494f2a7134777c3794d8d.tar.gz wolfbones-c9e29d385b601ae16fd494f2a7134777c3794d8d.tar.bz2 |
fixed building of tests (must build objects first!)
Diffstat (limited to 'tests/log')
-rw-r--r-- | tests/log/GNUmakefile | 6 | ||||
-rw-r--r-- | tests/log/test_log.c | 10 |
2 files changed, 13 insertions, 3 deletions
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; } |