Menu

#1279 unixFCmd.test test failure due to incorrect expected result

obsolete: 8.1
closed-fixed
5
2001-09-04
2000-10-26
Anonymous
No

OriginalBugID: 1412 Bug
Version: 8.1
SubmitDate: '1999-03-02'
LastModified: '2000-02-28'
Severity: LOW
Status: UnAssn
Submitter: pat
ChangedBy: hobbs
OS: Digital Unix
OSVersion: 4.0
Machine: Other
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'

Name:
James Bonfield

ReproducibleScript:
Test test claims:

==== unixFCmd-1.7 TclpRenameFile: EXDEV
==== Contents of test case:

cleanup
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 delete -force foo}
set result

The reason is that under Digital Unix 4.0, the msg returned is:
"error renaming "foo/bar" to "/tmp/bar": permission denied", not the "$a1" in
the above test.

ObservedBehavior:
Test failed

DesiredBehavior:
Test passes

Discussion

  • Donal K. Fellows

    • labels: 104252 --> 37. File System
     
  • Andreas Kupries

    Andreas Kupries - 2001-08-23
    • assigned_to: nobody --> vincentdarley
     
  • Vince Darley

    Vince Darley - 2001-09-04

    Logged In: YES
    user_id=32170

    This appears to have been fixed in the current cvs head, so
    I'm closing the bug.

     
  • Vince Darley

    Vince Darley - 2001-09-04
    • status: open --> closed-fixed