Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2000-10-26
08:32 • Closed ticket [218934ffff]: Tcltest package typo corrections plus 4 other ch... artifact: a55379c32e user: welch
01:08 • New ticket [218934ffff]. artifact: b50c749edf user: nobody

Tcltest package typo corrections

Closed / Fixed218934ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:08:08
OriginalBugID: 2836 Bug
Version: 8.2
SubmitDate: '1999-09-20'
LastModified: '1999-09-21'
Severity: LOW
Status: Released
Submitter: techsupp
ChangedBy: jenn
OS: Linux
OSVersion: 2.0.29
Machine: Other
FixedDate: '1999-09-21'
ClosedDate: '2000-10-25'


Name:

Andreas Kupries


Extensions:

--


CustomShell:

--


ReproducibleScript:

Enclosed a patch correcting some typos I saw while looking through the

    tcltest

    package distributed with tcl 8.2 (library/tcltest1.0/).


ObservedBehavior:

--


DesiredBehavior:

--


Patch:

*** tcltest.tcl.origMon Sep 13 19:25:00 1999

--- tcltest.tcl      Mon Sep 13 19:49:00 1999

***************

*** 56,62 ****

      variable errorChannel stderr


      # debug output doesn't get printed by default; debug level 1 spits

!     # up only the tets that were skipped because they didn't match or were 

      # specifically skipped.  A debug level of 2 would spit up the tcltest

      # variables and flags provided; a debug level of 3 causes some additional

      # output regarding operations of the test harness.  The tcltest package

--- 56,62 ----

      variable errorChannel stderr


      # debug output doesn't get printed by default; debug level 1 spits

!     # up only the tests that were skipped because they didn't match or were 

      # specifically skipped.  A debug level of 2 would spit up the tcltest

      # variables and flags provided; a debug level of 3 causes some additional

      # output regarding operations of the test harness.  The tcltest package

***************

*** 91,97 ****

      array set ::tcltest::createdNewFiles {}


      # initialize ::tcltest::numTests array to keep track fo the number of

!     # tests that pass, fial, and are skipped.


      array set ::tcltest::numTests [list Total 0 Passed 0 Skipped 0 Failed 0] 


--- 91,97 ----

      array set ::tcltest::createdNewFiles {}


      # initialize ::tcltest::numTests array to keep track fo the number of

!     # tests that pass, fail, and are skipped.


      array set ::tcltest::numTests [list Total 0 Passed 0 Skipped 0 Failed 0] 


***************

*** 114,120 ****

      # Don't run only the constrained tests by default

      variable limitConstraints false


!     # tests that use thread need to know which is the main thread


      variable mainThread 1

      if {[info commands testthread] != {}} {

--- 114,120 ----

      # Don't run only the constrained tests by default

      variable limitConstraints false


!     # tests that use threads need to know which is the main thread


      variable mainThread 1

      if {[info commands testthread] != {}} {

***************

*** 207,213 ****

  #       previously exist - otherwise, it just increments it.


  proc ::tcltest::AddToSkippedBecause { constraint } {

!     # add the constraint to the list of constraints the kept tests

      # from running


      if {[info exists ::tcltest::skippedBecause($constraint)]} {

--- 207,213 ----

  #       previously exist - otherwise, it just increments it.


  proc ::tcltest::AddToSkippedBecause { constraint } {

!     # add the constraint to the list of constraints that kept tests

      # from running


      if {[info exists ::tcltest::skippedBecause($constraint)]} {

***************

*** 339,347 ****

      set ::tcltest::testConstraints(win32s) [string equal $tcl_platform(os) \

      "Win32s"]


!     # The following Constraints switches are used to mark tests that should work,

!     # but have been temporarily disabled on certain platforms because they don't

!     # and we haven't gotten around to fixing the underlying problem.


      set ::tcltest::testConstraints(tempNotPc) \

      [expr {!$::tcltest::testConstraints(pc)}]

--- 339,347 ----

      set ::tcltest::testConstraints(win32s) [string equal $tcl_platform(os) \

      "Win32s"]


!     # The following Constraints switches are used to mark tests that should

!     # work, but have been temporarily disabled on certain platforms because

!     # they don't and we haven't gotten around to fixing the underlying problem.


      set ::tcltest::testConstraints(tempNotPc) \

      [expr {!$::tcltest::testConstraints(pc)}]


PatchFiles:

tcltest.tcl
welch Closed ticket [218934ffff]. [History diff]2000-10-26 08:32:13
Log in (anonymous is fine) to add a comment.