Diff
Not logged in

Differences From Artifact [78bc954d4c]:

To Artifact [93e9a70d3a]:


1
2
3
4
5
6
7
8
9
10
11
12

13
14

15
16
17
18
19
20
21
1
2
3
4
5
6
7
8
9
10
11

12
13

14
15
16
17
18
19
20
21











-
+

-
+







# This file contains a collection of tests for the procedures in the file
# tclEvent.c, which includes the "update", and "vwait" Tcl
# commands.  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.
#
# RCS: @(#) $Id: event.test,v 1.1.2.3 1999/03/11 18:49:34 hershey Exp $
# RCS: @(#) $Id: event.test,v 1.1.2.4 1999/03/23 20:06:19 hershey Exp $

if {[lsearch [namespace children] ::test] == -1} {
if {[lsearch [namespace children] ::tcltest] == -1} {
    source [file join [pwd] [file dirname [info script]] defs.tcl]
}

if {[catch {testfilehandler create 0 off off}] == 0 } {
    test event-1.1 {Tcl_CreateFileHandler, reading} {
	testfilehandler close
	testfilehandler create 0 readable off
565
566
567
568
569
570
571
572

573
574










565
566
567
568
569
570
571

572
573
574
575
576
577
578
579
580
581
582
583
584







-
+


+
+
+
+
+
+
+
+
+
+
    } {{} readable}
}

# cleanup
foreach i [after info] {
    after cancel $i
}
::test::cleanupTests
::tcltest::cleanupTests
return