Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 39152cd83d71b39a65b6f1a7c52c90cbaa9ab1ba
Ticket: 748960ffffffffffffffffffffffffffffffffff
cmdAH.test failed
User & Date: mmokrejs on 2003-06-06 17:27:48
Changes

  1. icomment:
    Logged In: YES 
    user_id=696559
    
    All servers are synchronized using xntpd. I tried on NFS,
    tests pass as well as on local disk. On AFS filesystem tests
    cmdAH-20.5 and cmdAH-25.2 fail.
    
    ==== cmdAH-20.5 Tcl_FileObjCmd: atime touch FAILED
    ==== Contents of test case:
    
        if {[string equal $tcl_platform(platform) "windows"]} {
            set old [pwd]
            cd $::tcltest::temporaryDirectory
            if {![string equal "NTFS" [testvolumetype]]} {
                # Windows FAT doesn't understand atime, but NTFS
    does
                # May also fail for Windows on NFS mounted disks
                cd $old
                return 1
            }
            cd $old
        }
        set atime [file atime $file]
        after 1100; # pause a sec to notice change in atime
        set newatime [clock seconds]
        set modatime [file atime $file $newatime]
        expr {$newatime == $modatime ? 1 : "$newatime != $modatime"}
    
    ---- Result was:
    1054894829 != 1054894828
    ---- Result should have been (exact matching):
    1
    ==== cmdAH-20.5 FAILED
    
    
    ==== cmdAH-25.2 Tcl_FileObjCmd: owned FAILED
    ==== Contents of test case:
    
        file owned $gorpfile
    
    ---- Result was:
    0
    ---- Result should have been (exact matching):
    1
    ==== cmdAH-25.2 FAILED
    
    
    I believe, the first fails because of the caching mechanism
    which delays the action a bit.
    
    The second test fails because on AFS filesystem the
    username/group does not have to match at all. Often I create
    files which have different owner/group.
    
    I believe both tests should have at least comments within
    the code that they might fail on AFS filesystem. It could be
    tested if the tesfile was created on AFS filesystem by
    executing fs command from normal shell(sh/bash etc):
    
    $ fs la tclUnixInit.c
    Access list for tclUnixInit.c is
    Normal rights:
      system:administrators rlidwka
      system:authuser rl
      system:anyuser rl
    $
    
    The output may be longer or shorter, but the first line
    should stay.
    
    
  2. login: "mmokrejs"
  3. mimetype: "text/plain"
  4. username: "mmokrejs"