From 9366d8f76430fac4c64be6dd99e44a13ed4c2fb9 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Mon, 4 May 2020 22:19:53 +1000 Subject: tests: Fixes to recent tests for windows Mostly just avoiding running certain tests, but also: - rename() won't overwrite an existing file on Windows - ensure that eof returns 0 or 1 - in aio.test, create and read the file in binary mode Signed-off-by: Steve Bennett --- jim-aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jim-aio.c') diff --git a/jim-aio.c b/jim-aio.c index b234106..06d9fa8 100644 --- a/jim-aio.c +++ b/jim-aio.c @@ -1016,7 +1016,7 @@ static int aio_cmd_eof(Jim_Interp *interp, int argc, Jim_Obj *const *argv) { AioFile *af = Jim_CmdPrivData(interp); - Jim_SetResultInt(interp, feof(af->fp)); + Jim_SetResultInt(interp, !!feof(af->fp)); return JIM_OK; } -- cgit v1.1