diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-01-02 20:34:49 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-01-02 20:34:49 (GMT) |
commit | 89c1ac99d375fbd73892aa659f06ef5e2c5ea56e (patch) | |
tree | e76ce80d68d11f1ea137bc33a42f71a1d1f32028 /tcl8.6/tests/unixForkEvent.test | |
parent | 01e4cd2ef2ff59418766b2259fbc99771646aba6 (diff) | |
download | blt-89c1ac99d375fbd73892aa659f06ef5e2c5ea56e.zip blt-89c1ac99d375fbd73892aa659f06ef5e2c5ea56e.tar.gz blt-89c1ac99d375fbd73892aa659f06ef5e2c5ea56e.tar.bz2 |
upgrade to tcl/tk 8.6.8
Diffstat (limited to 'tcl8.6/tests/unixForkEvent.test')
-rw-r--r-- | tcl8.6/tests/unixForkEvent.test | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/tcl8.6/tests/unixForkEvent.test b/tcl8.6/tests/unixForkEvent.test deleted file mode 100644 index 120f362..0000000 --- a/tcl8.6/tests/unixForkEvent.test +++ /dev/null @@ -1,45 +0,0 @@ -# This file contains a collection of tests for the procedures in the file -# tclUnixNotify.c. Sourcing this file into Tcl runs the tests and -# generates output for errors. No output means no errors were found. -# -# Copyright (c) 1995-1997 Sun Microsystems, Inc. -# Copyright (c) 1998-1999 by Scriptics Corporation. -# -# See the file "license.terms" for information on usage and redistribution -# of this file, and for a DISCLAIMER OF ALL WARRANTIES. - -package require tcltest 2 -namespace import -force ::tcltest::* - -testConstraint testfork [llength [info commands testfork]] - -# Test if the notifier thread is well initialized in a forked interpreter -# by Tcl_InitNotifier -test unixforkevent-1.1 {fork and test writeable event} \ - -constraints {testfork nonPortable} \ - -body { - set myFolder [makeDirectory unixtestfork] - set pid [testfork] - if {$pid == 0} { - # we are the forked process - set result initialized - set h [open [file join $myFolder test.txt] w] - fileevent $h writable\ - "set result writable;\ - after cancel [after 1000 {set result timeout}]" - vwait result - close $h - makeFile $result result.txt $myFolder - exit - } - # we are the original process - while {![file readable [file join $myFolder result.txt]]} {} - viewFile result.txt $myFolder - } \ - -result {writable} \ - -cleanup { - catch { removeFolder $myFolder } - } - -::tcltest::cleanupTests -return |