Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-05
08:22 • Ticket [218669ffff] error messages differ accross platforms causing fCmd tests t... artifact: 0d765e8f91 user: dgp
2000-10-26
08:26 • Closed ticket [218669ffff]. artifact: bdfabaa4ba user: welch
01:03 • New ticket [218669ffff]. artifact: 15dd9cef49 user: nobody

error messages differ accross platforms causing fCmd tests t

Closed / Fixed218669ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:03:56
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
welch Closed ticket [218669ffff]. [History diff]2000-10-26 08:26:11
dgp Ticket [218669ffff]: 3 changes [History diff]2001-04-05 08:22:16
Log in (anonymous is fine) to add a comment.