aboutsummaryrefslogtreecommitdiff
path: root/jim-aio.c
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2020-05-04 22:19:53 +1000
committerSteve Bennett <steveb@workware.net.au>2020-05-04 23:04:09 +1000
commit9366d8f76430fac4c64be6dd99e44a13ed4c2fb9 (patch)
treeea0af6f35b44e1b441c3b2de9f9cc286929cfb6c /jim-aio.c
parentb58ccf39a730dba009abbbae19cb55e0200d37ac (diff)
downloadjimtcl-9366d8f76430fac4c64be6dd99e44a13ed4c2fb9.zip
jimtcl-9366d8f76430fac4c64be6dd99e44a13ed4c2fb9.tar.gz
jimtcl-9366d8f76430fac4c64be6dd99e44a13ed4c2fb9.tar.bz2
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 <steveb@workware.net.au>
Diffstat (limited to 'jim-aio.c')
-rw-r--r--jim-aio.c2
1 files changed, 1 insertions, 1 deletions
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;
}