Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8e2cafb30c9c14cecc768be997a11f6ba1f71603
Ticket: 1988552fffffffffffffffffffffffffffffffff
test failures in iortrans.tf
User & Date: andreas_kupries on 2008-06-10 11:36:13
Changes

  1. icomment:
    Logged In: YES 
    user_id=75003
    Originator: NO
    
    Reading all the relevant code I am getting an inkling of the problem. Using tf-6.1 as example:
    
    The code opens the file, pushes the transform on the channel, and then moves this channel to a second thread B via the testthread cut/splice commands. It then runs the test script in thread B, captures results and delivers them. Thread B is reaped/killed via tcltest::threadReap. This uses -async thread::exit's to kill the thread. The code uses 'after' delays to wait a bit for the kill, but otherwise is not sync. As such I can currently not exclude that we come to the 'removeFile' command while thread B is still alive and holding the channel open.
    
    The proper way of doing things might be to 'close $c' in the test-script given to inthread. The return from that is synchronized via 'vwait', so we can be sure that the channel would be gone.
    
    I.e. try to add the commands
    
    close $c
    set notes
    
    after line 1247 of ioTrans.test. Close channel and make the returned data explicit (was implicit in the result of 'note' before).
    
    Wait ... tf-6.2 fails for you as well, and I see that this one has an explicit 'close' command in the script.
    That counters my theory. ditto all the others as well.
    
    Ok, I will have to compile this on our XP box. Problem is that I use MSVC, mingw is only the bash/make environment. 
    Although, if that works we have one mre nice datapoint.
    
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"