Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 85f1abc7e2ec188d19e2985677b115253167c3fd
Ticket: 3549770fffffffffffffffffffffffffffffffff
Multiple test failures running tcltest outside build tree
User & Date: twylite on 2012-07-27 18:38:04
Changes

  1. icomment:
    Under Tcl 8.6 (and probably 8.5) there are additional differences relating to skipped tests: all dde and registry tests are being skipped when run from the install path as they rely on ::ddelib and ::reglib variables being present and correctly defined.
    
    The follow patch fixes this problem, as well as the related registry-6.21 problem:
    
    
    --- library\dde\pkgIndex.tcl
    +++ library\dde\pkgIndex.tcl
    @@ -1,7 +1,9 @@
     if {([info commands ::tcl::pkgconfig] eq "")
            || ([info sharedlibextension] ne ".dll")} return
     if {[::tcl::pkgconfig get debug]} {
    -    package ifneeded dde 1.4.0b1 [list load [file join $dir tcldde14g.dll] dde]
    +    set ::ddelib [file join $dir tcldde14g.dll]
     } else {
    -    package ifneeded dde 1.4.0b1 [list load [file join $dir tcldde14.dll] dde]
    +    set ::ddelib [file join $dir tcldde14.dll]
     }
    +# ::ddelib is required by windde.test
    +package ifneeded dde 1.4.0b1 [list load $::ddelib dde]
    
    --- library\reg\pkgIndex.tcl
    +++ library\reg\pkgIndex.tcl
    @@ -1,9 +1,9 @@
     if {([info commands ::tcl::pkgconfig] eq "")
            || ([info sharedlibextension] ne ".dll")} return
     if {[::tcl::pkgconfig get debug]} {
    -    package ifneeded registry 1.3.0 \
    -            [list load [file join $dir tclreg13g.dll] registry]
    +    set ::reglib [file join $dir tclreg13g.dll]
     } else {
    -    package ifneeded registry 1.3.0 \
    -            [list load [file join $dir tclreg13.dll] registry]
    +    set ::reglib [file join $dir tclreg13.dll]
     }
    +# ::reglib is required by registry.test
    +package ifneeded registry 1.3.0 [list load $::reglib registry]
    
    --- tests\fCmd.test
    +++ tests\fCmd.test
    @@ -33,7 +33,8 @@
            } on error {} {
                # try the location given to use on the commandline to tcltest
                ::tcltest::loadTestedCommands
    -           load $::reglib Registry
    +           catch { load $::reglib Registry }
    +      package require registry
            }
            testConstraint reg 1
         }
    
    --- tests\registry.test
    +++ tests\registry.test
    @@ -22,7 +22,8 @@
            if [catch {load {} Registry; set ::reglib {}}] {
                # try the location given to use on the commandline to tcltest
                ::tcltest::loadTestedCommands
    -           load $::reglib Registry
    +           catch { load $::reglib Registry }
    +      package require registry
            }
            testConstraint reg 1
         }
    @@ -505,7 +506,7 @@
         registry delete HKEY_CURRENT_USER\\TclFoobar
         set result
     } "foo ba r baz"
    -test registry-6.21 {GetValue: very long value names and values} {pcOnly} {
    +test registry-6.21 {GetValue: very long value names and values} {pcOnly reg} {
         registry set HKEY_CURRENT_USER\\TclFoobar [string repeat k 16383] [string repeat x 16383] multi_sz
         set result [registry get HKEY_CURRENT_USER\\TclFoobar [string repeat k 16383]]
         registry delete HKEY_CURRENT_USER\\TclFoobar
    
    --- tests\winDde.test
    +++ tests\winDde.test
    @@ -20,7 +20,8 @@
         if [catch {load {} Dde; set ::ddelib {}}] {
            # try the location given to use on the commandline to tcltest
            ::tcltest::loadTestedCommands
    -       load $::ddelib Dde
    +       catch { load $::ddelib Dde }
    +       package require dde
         }
         testConstraint dde 1
     }] {
    
    
    
    
  2. login: "twylite"
  3. mimetype: "text/plain"
  4. username: "twylite"