diff options
author | Steve Bennett <steveb@workware.net.au> | 2020-05-04 22:19:53 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2020-05-04 23:04:09 +1000 |
commit | 9366d8f76430fac4c64be6dd99e44a13ed4c2fb9 (patch) | |
tree | ea0af6f35b44e1b441c3b2de9f9cc286929cfb6c /jim-aio.c | |
parent | b58ccf39a730dba009abbbae19cb55e0200d37ac (diff) | |
download | jimtcl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |