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 /tests/error.test | |
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 'tests/error.test')
-rw-r--r-- | tests/error.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/error.test b/tests/error.test index 312155b..d226900 100644 --- a/tests/error.test +++ b/tests/error.test @@ -49,7 +49,7 @@ test error-1.2 "Modify stacktrace" { # Package should be able to invoke exit, which should exit if not caught test error-2.1 "Exit from package" { - list [catch -exit {package require exitpackage} msg] $msg -} {6 {Can't load package exitpackage}} + catch -exit {package require exitpackage} msg +} 6 testreport |