Skip to content
Tcl Source Code View Ticket
Login

View Ticket

unixFCmd.test test failure due to incorrect expected result

Closed / Fixed219270ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 05:09:41
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
dkf Ticket [219270ffff]: 1 change [History diff]2001-02-07 22:12:47
andreas_kupries Ticket [219270ffff]: 1 change [History diff]2001-08-24 05:01:12
vincentdarleyplain2001-09-04 23:44:20
Logged In: YES 
user_id=32170

This appears to have been fixed in the current cvs head, so 
I'm closing the bug.
Log in (anonymous is fine) to add a comment.