From e909de65b907ae2be5874201b6881a5196e68c17 Mon Sep 17 00:00:00 2001 From: Max Dymond Date: Mon, 10 Jul 2017 13:50:15 +0100 Subject: tests: Fix up issues with errno in test files Closes https://github.com/curl/curl/pull/1671 --- tests/libtest/lib525.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/libtest/lib525.c') diff --git a/tests/libtest/lib525.c b/tests/libtest/lib525.c index 4bf259d21..f468efa25 100644 --- a/tests/libtest/lib525.c +++ b/tests/libtest/lib525.c @@ -55,7 +55,7 @@ int test(char *URL) hd_src = fopen(libtest_arg2, "rb"); if(NULL == hd_src) { - error = ERRNO; + error = errno; fprintf(stderr, "fopen failed with error: %d (%s)\n", error, strerror(error)); fprintf(stderr, "Error opening file: (%s)\n", libtest_arg2); @@ -66,7 +66,7 @@ int test(char *URL) hd = fstat(fileno(hd_src), &file_info); if(hd == -1) { /* can't open file, bail out */ - error = ERRNO; + error = errno; fprintf(stderr, "fstat() failed with error: %d (%s)\n", error, strerror(error)); fprintf(stderr, "ERROR: cannot open file (%s)\n", libtest_arg2); -- cgit v1.2.3