summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2020-01-17 16:40:37 (GMT)
committersebres <sebres@users.sourceforge.net>2020-01-17 16:40:37 (GMT)
commita3728e6d82a95897084c458b48661f468c14e724 (patch)
treef243e9a9e5afb2b4880a0a91219f367c3b77af93 /tests
parent35ec25a6cf7c2686aa9b6b972403788937b6f6fd (diff)
downloadtcl-a3728e6d82a95897084c458b48661f468c14e724.zip
tcl-a3728e6d82a95897084c458b48661f468c14e724.tar.gz
tcl-a3728e6d82a95897084c458b48661f468c14e724.tar.bz2
small amend (skip messages, avoid output on interactive shell)
Diffstat (limited to 'tests')
-rw-r--r--tests/cmdIL.test9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/cmdIL.test b/tests/cmdIL.test
index b743b35..fabedea 100644
--- a/tests/cmdIL.test
+++ b/tests/cmdIL.test
@@ -454,14 +454,15 @@ test cmdIL-5.7 {lsort memory exhaustion} -constraints {prlimit} -body {
exec prlimit -p [pid $pipe] --as=80000000
} msg]} {
catch {close $pipe}
- tcltest::Skip "prlimit: set of limit is impossible, [regsub {^\s*([^\n]*).*$} $msg {\1}]"
+ tcltest::Skip "prlimit: error - [regsub {^\s*([^\n]*).*$} $msg {\1}]"
}
# if no error (enough memory), or error by list creation - add it as skipped test:
if {![catch {
chan configure $pipe -buffering line
puts $pipe {
- # test
- set l [lrepeat 4000000 ""]
+ # create list and get length (avoid too long output in interactive shells):
+ llength [set l [lrepeat 4000000 ""]]
+ # test OOM:
puts [llength [lsort $l]]
exit
}
@@ -470,7 +471,7 @@ test cmdIL-5.7 {lsort memory exhaustion} -constraints {prlimit} -body {
set pipe {}
set result
} result] || [regexp {^(?:list creation failed|unable to alloc)} $result]} {
- tcltest::Skip "prlimit: too small or too large AS-limit, result: $result"
+ tcltest::Skip "prlimit: wrong AS-limit, result: $result"
}
set result
# expecting error no memory by sort