diff options
author | Steve Bennett <steveb@workware.net.au> | 2021-01-03 13:09:30 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2021-01-03 13:09:30 +1000 |
commit | aed37159d551144579fe5267bb3dd297cfe9444e (patch) | |
tree | 097cf937957391df7b2ed1b7563df1e829145e05 /jim.c | |
parent | a432a96ecae0fa93d76e602510719cef931916e2 (diff) | |
download | jimtcl-aed37159d551144579fe5267bb3dd297cfe9444e.zip jimtcl-aed37159d551144579fe5267bb3dd297cfe9444e.tar.gz jimtcl-aed37159d551144579fe5267bb3dd297cfe9444e.tar.bz2 |
bootstrap jimsh: pass all tests
In order to test bootstrap jimsh, it is very helpful
if it can pass all the unit tests.
- Set tcl_platform(bootstrap) to 1 for bootstrap jimsh or 0 otherwise
- Use getref to determine in we have references, not ref since we
implement a poor-man's ref for bootstrap jimsh
- bootstrap jimsh package doesn't return a "Can't load package"
message if loading the package fails
- exec tests using [open |command] need pipe
- bootstrap jimsh can't set file times with [file mtime]
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim.c')
-rw-r--r-- | jim.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -5671,6 +5671,7 @@ Jim_Interp *Jim_CreateInterp(void) Jim_SetVariableStrWithStr(i, "tcl_platform(pathSeparator)", TCL_PLATFORM_PATH_SEPARATOR); Jim_SetVariableStrWithStr(i, "tcl_platform(byteOrder)", Jim_IsBigEndian() ? "bigEndian" : "littleEndian"); Jim_SetVariableStrWithStr(i, "tcl_platform(threaded)", "0"); + Jim_SetVariableStrWithStr(i, "tcl_platform(bootstrap)", "0"); Jim_SetVariableStr(i, "tcl_platform(pointerSize)", Jim_NewIntObj(i, sizeof(void *))); Jim_SetVariableStr(i, "tcl_platform(wordSize)", Jim_NewIntObj(i, sizeof(jim_wide))); |