diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2010-05-23 11:45:32 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2010-05-23 11:45:32 +0200 |
commit | 3b381609dddb8f4f9c3668681e4e475501b3f38f (patch) | |
tree | 2860cdf78ed1379d7b402eefa4b0aea2ed505f44 /tests | |
parent | cc19486d5cc448647961918ebd73e2aced5eb803 (diff) | |
download | wolfbones-3b381609dddb8f4f9c3668681e4e475501b3f38f.tar.gz wolfbones-3b381609dddb8f4f9c3668681e4e475501b3f38f.tar.bz2 |
removed FormatMessage/Win32 macro from log.h and added a
more portable wolf_system_error_msg in errors module
Diffstat (limited to 'tests')
-rw-r--r-- | tests/library/test_loader.c | 2 | ||||
-rw-r--r-- | tests/log/test_log.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/library/test_loader.c b/tests/library/test_loader.c index 50ed8db..bda32b3 100644 --- a/tests/library/test_loader.c +++ b/tests/library/test_loader.c @@ -1,5 +1,5 @@ /* - Copyright (C) 2010 Andreas Baumann <abaumann@yahoo.com> + Copyright (C) 2008 Andreas Baumann <abaumann@yahoo.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/tests/log/test_log.c b/tests/log/test_log.c index 3d6ab97..50a3904 100644 --- a/tests/log/test_log.c +++ b/tests/log/test_log.c @@ -76,14 +76,14 @@ int main( void ) { /* different ways of handling system errors (errno, GetLastError) */ errno = 5; - (void)strerror_r( errno, errbuf, 512 ); + (void)wolf_system_error_msg( errbuf, 512 ); wolf_log( WOLF_LOG_ERR, WOLF_CATEGORY_TEST_LOG, WOLF_MSG_TEST_LOG_MSG7, - "A system error occured during %s phase: %s (%d)", "fla", + "A Unix system error occured during %s phase: %s (%d)", "fla", errbuf, errno ); #ifdef _WIN32 SetLastError( 18 ); - WOLF_LOG_GET_LAST_ERROR( GetLastError( ), errbuf, 512 ); + (void)wolf_system_error_msg( errbuf, 512 ); wolf_log( WOLF_LOG_ERR, WOLF_CATEGORY_TEST_LOG, WOLF_MSG_TEST_LOG_MSG8, "A Windows error occured during %s phase: %s (%d)", "fla", errbuf, GetLastError( ) ); |