Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bf725feb3fdda8a01b0f0d15b87e34b826d00199
Ticket: 1606860fffffffffffffffffffffffffffffffff
chan-16.9 fails on Mac OS X
User & Date: cleverly on 2006-12-02 00:26:14
Changes

  1. icomment:
    Logged In: YES 
    user_id=22080
    Originator: NO
    
    This failure is timing related, not anything specific to OS X.  (I wrote the test on my [getting older] powerpc OS X laptop.)
    
    The test sets up a server socket with a readable fileevent and then opens a client socket to it and writes chunks of 36-bytes worth of data (with no newlines) spaced 100ms apart.  
    
    The failure above shows first chunk of 36 bytes read, second chunk of 36 bytes, then a third chunk of 72 bytes (i.e., when the fileevent triggered the client had been called twice in between).
    
    I'm attaching a patch which modifies the test where the next write chunk is scheduled as an after idle callback when the prior data is read. I think this will eliminate timing conditions (which the test isn't designed to say anything about) while still exercising the functionality [chan pending input] that the test is testing.
    
    Comments, feedback, suggestions of course welcomed.  Thanks!
    
    
  2. login: "cleverly"
  3. mimetype: "text/plain"
  4. username: "cleverly"