From 3b381609dddb8f4f9c3668681e4e475501b3f38f Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 23 May 2010 11:45:32 +0200 Subject: removed FormatMessage/Win32 macro from log.h and added a more portable wolf_system_error_msg in errors module --- tests/library/test_loader.c | 2 +- tests/log/test_log.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') 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 + Copyright (C) 2008 Andreas Baumann 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( ) ); -- cgit v1.2.3-54-g00ecf