Tcl Source Code

View Ticket
Login
Ticket UUID: 1066528
Title: winFCmd-6.11 assumes current drive of C:
Type: Bug Created on: 2004-11-15 08:50:58
Submitter: mistachkin Assigned to: vincentdarley
Subsystem: 37. File System Severity:
Priority: 5 Medium Last modified: 2005-01-17 20:04:49
Status: Closed Closed by: vincentdarley
Resolution: Fixed Closed on: 2005-01-17 13:04:49
Version: obsolete: 8.4.8
Description:
Found this bug in core-8-4-branch, however, it may also
be in HEAD.

The test "winFCmd-6.11" incorrectly assumes that the
current drive is "C:".  It makes no attempt to actually
check the current drive or set it to something "well
known" prior to performing the test.

I wonder if other bugs in this class are lurking in the
test suite?

==== winFCmd-6.11 TclpRemoveDirectory: attr == -1 FAILED
==== Contents of test case:

    cleanup
    set res [list [catch {testfile rmdir /} msg] $msg]
    # WinXP returns EEXIST, WinNT seems to return
EACCES.  No policy
    # decision has been made as to which is correct.
    regsub {E(ACCES|EXIST)} $res "EACCES or EEXIST"

---- Result was:
1 {E:/ EACCES or EEXIST}
---- Result should have been (exact matching):
1 {C:/ EACCES or EEXIST}
==== winFCmd-6.11 FAILED
User Comments:
vincentdarley added on 2005-01-17 20:04:49:
Logged In: YES 
user_id=32170

Fixed in 8-4 branch. Was already ok in HEAD.