summaryrefslogtreecommitdiff
path: root/tests/log
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-19 11:23:44 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-03-19 11:23:44 +0100
commit02c0ec4727710a679bd2f436a6fe67b707a22c84 (patch)
tree19f26cf4d0cd659dc13d68f6352f7b4537fd0eba /tests/log
parent59218203a248a958ad5cb281507dbd7ad3255334 (diff)
downloadwolfbones-02c0ec4727710a679bd2f436a6fe67b707a22c84.tar.gz
wolfbones-02c0ec4727710a679bd2f436a6fe67b707a22c84.tar.bz2
big logger cleanup on Windows, local testmsg.dll for log test
Diffstat (limited to 'tests/log')
-rw-r--r--tests/log/Makefile.W3212
-rw-r--r--tests/log/test_log.c3
2 files changed, 8 insertions, 7 deletions
diff --git a/tests/log/Makefile.W32 b/tests/log/Makefile.W32
index 0a1b688..de5f8f4 100644
--- a/tests/log/Makefile.W32
+++ b/tests/log/Makefile.W32
@@ -3,7 +3,7 @@ TOPDIR = ..\..
SUBDIRS =
INCLUDE_DIRS = \
- /I$(TOPDIR)\include\wolf /I.
+ /I$(TOPDIR)\include\wolf /I. \
/D_WIN32_WINNT=0x400 /I"$(PLATFORM_SDK_DIR)\Include"
INCLUDE_LDFLAGS = \
@@ -14,7 +14,7 @@ INCLUDE_LIBS = \
advapi32.lib
LIBRARIES = \
- log\testmsg.dll
+ testmsg.dll
TEST_BINS = \
test_log.exe
@@ -23,11 +23,11 @@ TEST_BINS = \
test_log.exe: test_log.obj $(TOPDIR)\src\wolf.lib
-log\testmsg.dll: log\testmsg.res
+testmsg.dll: testmsg.res
$(LINK) /dll /nologo /noentry /MACHINE:x86 /out:$@ $?
-log\testmsg.rc: log\testmsg.mc
-log\testmsg.res: log\testmsg.rc
+testmsg.rc: testmsg.mc
+testmsg.res: testmsg.rc
local_test: $(LIBRARIES)
@echo Testing log..
@@ -37,7 +37,7 @@ local_all:
local_clean:
@-erase test.log 2>NUL
- @-erase $(LIBRARIES) log\testmsg.h 2>NUL
+ @-erase $(LIBRARIES) testmsg.h 2>NUL
local_distclean:
diff --git a/tests/log/test_log.c b/tests/log/test_log.c
index 39c861e..388cafb 100644
--- a/tests/log/test_log.c
+++ b/tests/log/test_log.c
@@ -19,7 +19,8 @@ int main( void ) {
WOLF_LOG_SYSLOG_DEFAULT_OPTIONS );
#endif
#if defined WOLF_LOG_HAVE_EVENTLOG
- wolf_log_openlogtoeventlog( NULL, "Application", "wolf_log_test", WOLF_LOG_NOTICE );
+ wolf_log_openlogtoeventlog( NULL, "Application", "wolf_log_test",
+ "C:\\Temp\\testmsg.dll", WOLF_LOG_NOTICE );
#endif
wolf_log( WOLF_LOG_NOTICE, WOLF_CATEGORY_TEST_LOG, WOLF_MSG_TEST_LOG_MSG1, "Started the logger" );