Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 15dd9cef49f7986ffe69200d64c64f977e945361
Ticket: 218669ffffffffffffffffffffffffffffffffff
error messages differ accross platforms causing fCmd tests t
User & Date: nobody on 2000-10-26 01:03:56
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1678 Bug
    Version: 8.0.5
    SubmitDate: '1999-03-31'
    LastModified: '1999-03-31'
    Severity: SER
    Status: Released
    Submitter: pat
    ChangedBy: pat
    OS: Linux
    OSVersion: upgraded version of Slackware
    Machine: Other
    FixedDate: '1999-04-19'
    FixedInVersion: 8.1b3
    ClosedDate: '2000-10-25'
    
    
    Name:
    pete
    
    CustomShell:
    No modifications to the core.
    
    ReproducibleScript:
        cd tcl8.0.5/unix
        make test             /* after compiling the package of course */
    
    ObservedBehavior:
        failure of test:
        
           ==== fCmd-6.30 CopyRenameOneFile: TclpRemoveDirectory failed    ---
        (unixOnly) -
        
        and of test:
        
           ==== unixFCmd-1.7 TclpRenameFile: EXDEV
    
    DesiredBehavior:
        
             i was kind of hoping they'd pass.
    
    Patch:
    *** fCmd.test.old       Wed Mar 31 11:17:41 1999
    --- fCmd.test.new       Wed Mar 31 11:26:05 1999
    ***************
    *** 584,590 ****
          file mkdir foo/bar
          file attr foo -perm 040555
          set msg [list [catch {file rename foo/bar /tmp} msg] $msg]
    !     set a1 {1 {can't unlink "foo/bar": permission denied}}
          set result [expr {$msg == $a1}]
          catch {file delete /tmp/bar}
          catch {file attr foo -perm 040777}
    --- 584,590 ----
          file mkdir foo/bar
          file attr foo -perm 040555
          set msg [list [catch {file rename foo/bar /tmp} msg] $msg]
    !     set a1 {1 {error renaming "foo/bar" to "/tmp/bar": permission denied}}
          set result [expr {$msg == $a1}]
          catch {file delete /tmp/bar}
          catch {file attr foo -perm 040777}
    *** unixFCmd.test.old   Wed Mar 31 11:19:11 1999
    --- unixFCmd.test.new   Wed Mar 31 11:27:41 1999
    ***************
    *** 84,90 ****
          file mkdir foo/bar
          file attr foo -perm 040555
          set msg [list [catch {file rename foo/bar /tmp} msg] $msg]
    !     set a1 {1 {can't unlink "foo/bar": permission denied}}
          set result [expr {$msg == $a1}]
          catch {file delete /tmp/bar}      catch {file attr foo -perm 040777}
          catch {file attr foo -perm 040777}
    --- 84,90 ----
          file mkdir foo/bar
          file attr foo -perm 040555
          set msg [list [catch {file rename foo/bar /tmp} msg] $msg]
    !     set a1 {1 {error renaming "foo/bar" to "/tmp/bar": permission denied}}
          set result [expr {$msg == $a1}]
          catch {file delete /tmp/bar}
          catch {file attr foo -perm 040777}
    
    PatchFiles:
          fCmd.test
        
          unixFCmd.test
        
    Comments:
    
             This didn't seem to fall precisly into any of the catagories of
        your
             rankings.  I couldn't install and use the tcl8.05 package until it
             passed all the tests in "make test".
        
             My guess is that the output for the exception generated by these
        two
             test may have changed.  I hope my changes to the two *.test files
             did not mask a true problem in my compilation.
        
             The relevant c code that may be the source of the exception text 
             could be in file generic/tclFCmd.c in the function
        "CopyRenameOneFile".
    
    
    
    These tests were failing because error messages were different on different platforms.  I fixed this behavior in Tcl/Tk8.1b3 by searching for "permission denied" in the error message.  Since this is already fixed in 8.1, I'm not going to apply the patch toward 8.0.
    -hershey
    
    
    
  4. foundin changed to: "final: 8.0.5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "61. (unused)"
  10. title changed to:
    error messages differ accross platforms causing fCmd tests t
    
  11. type changed to: "Bug"