Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bc90caeb31bcd455892add4b5a72cf97b76faee5
Ticket: 3549770fffffffffffffffffffffffffffffffff
Multiple test failures running tcltest outside build tree
User & Date: nijtmans on 2012-07-30 17:43:39
Changes

  1. foundin changed to: "None"
  2. icomment:
    
    
    data_type - 360894
    
    So, what's wrong with the following reasoning.
    
    In Makefile/makefile.vc we use the "-load" or "-loadfile" option
    to specify which versions we want to test:
    package ifneeded dde 1.4.0b1 [list load [file normalize ${DDE_DLL_FILE}] dde]
    package ifneeded registry 1.3.0 [list load [file normalize ${REG_DLL_FILE}] registry]
    In the test case, we execute ::tcltest::loadTestedCommands
    immediately before the [package require]. This way we are sure that the
    mentioned versions match exactly the dll's we want to test. So,
    using -exact, we are assured we are testing the right dll.
    
    The big advantage of this is that testcases can always
    use "package require" to load the right dll. The -load/-loadfile
    options can control exactly which dll is being loaded by
    the test. If you don't specify -load/-loadfile, then the
    normal "package require" machinery will run.
    
    > unless the test uses -exact and gets updated every time
    >either of these versions changes
    Yes that's the way to assure the right version is loaded. Maybe
    the win32 tests are not run as often as they should, but
    before every release they are all tested. People get
    more active once a new release is approaching.
    
    I now added an additional test-case winDde-1.0 and
    registry-1.0, which check whether the right dll is tested.
    If not, this test will fail but all others will run normally.
    
    Tcl never promised to be able to run the testcases
    in the installed environment, so in fact this should
    be considered a feature, not a bug. Therefore
    changing the group to 8.6b3.
    
    
  3. login: "nijtmans"
  4. mimetype: "text/plain"
  5. username: "nijtmans"