summaryrefslogtreecommitdiff
path: root/tests/log/test_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/log/test_log.c')
-rw-r--r--tests/log/test_log.c6
1 files changed, 3 insertions, 3 deletions
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( ) );