diff options
author | sebres <sebres@users.sourceforge.net> | 2018-04-30 11:10:14 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2018-04-30 11:10:14 (GMT) |
commit | ddfce0ed3f91a335d169f6f25cae2da7051d0631 (patch) | |
tree | aa841cbe8a6780d3d9f2c28e9c5059c0b44516ce /tests/winPipe.test | |
parent | df94eecf119611a2fa8de1abb3abe59269be7550 (diff) | |
parent | 9856afd5903e2aec8bed684abb91fe307cd20765 (diff) | |
download | tcl-ddfce0ed3f91a335d169f6f25cae2da7051d0631.zip tcl-ddfce0ed3f91a335d169f6f25cae2da7051d0631.tar.gz tcl-ddfce0ed3f91a335d169f6f25cae2da7051d0631.tar.bz2 |
merge fix-1613456fff, closes [1613456fffffffff] and [27b682284974d0cd]
Diffstat (limited to 'tests/winPipe.test')
-rw-r--r-- | tests/winPipe.test | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/winPipe.test b/tests/winPipe.test index 3f983e1..f993e0c 100644 --- a/tests/winPipe.test +++ b/tests/winPipe.test @@ -21,6 +21,7 @@ set bindir [file join [pwd] [file dirname [info nameofexecutable]]] set cat32 [file join $bindir cat32.exe] testConstraint exec [llength [info commands exec]] +testConstraint testexcept [llength [info commands testexcept]] testConstraint cat32 [file exists $cat32] testConstraint AllocConsole [catch {puts console1 ""}] testConstraint RealConsole [expr {![testConstraint AllocConsole]}] @@ -193,28 +194,28 @@ test winpipe-4.1 {Tcl_WaitPid} {win nt exec cat32} { vwait x list $result $x [contents $path(stderr)] } "{$big} 1 stderr32" -test winpipe-4.2 {Tcl_WaitPid: return of exception codes, SIGFPE} {win exec} { +test winpipe-4.2 {Tcl_WaitPid: return of exception codes, SIGFPE} {win exec testexcept} { set f [open "|[list [interpreter]]" w+] set pid [pid $f] puts $f "testexcept float_underflow" set status [catch {close $f}] list $status [expr {$pid == [lindex $::errorCode 1]}] [lindex $::errorCode 2] } {1 1 SIGFPE} -test winpipe-4.3 {Tcl_WaitPid: return of exception codes, SIGSEGV} {win exec} { +test winpipe-4.3 {Tcl_WaitPid: return of exception codes, SIGSEGV} {win exec testexcept} { set f [open "|[list [interpreter]]" w+] set pid [pid $f] puts $f "testexcept access_violation" set status [catch {close $f}] list $status [expr {$pid == [lindex $::errorCode 1]}] [lindex $::errorCode 2] } {1 1 SIGSEGV} -test winpipe-4.4 {Tcl_WaitPid: return of exception codes, SIGILL} {win exec} { +test winpipe-4.4 {Tcl_WaitPid: return of exception codes, SIGILL} {win exec testexcept} { set f [open "|[list [interpreter]]" w+] set pid [pid $f] puts $f "testexcept illegal_instruction" set status [catch {close $f}] list $status [expr {$pid == [lindex $::errorCode 1]}] [lindex $::errorCode 2] } {1 1 SIGILL} -test winpipe-4.5 {Tcl_WaitPid: return of exception codes, SIGINT} {win exec} { +test winpipe-4.5 {Tcl_WaitPid: return of exception codes, SIGINT} {win exec testexcept} { set f [open "|[list [interpreter]]" w+] set pid [pid $f] puts $f "testexcept ctrl+c" |