Skip to content
Tcl Source Code View Ticket
Login

View Ticket

problem with test fCmd-18.10

Closed / Duplicate759196ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-06-23 12:48:24
OS: Linux 2.2.21 smp

used tcl Version: tcl8.4.3

name of the file with the problem: fCmd.test

revision:   # RCS: @(#) $Id: fCmd.test,v 1.26.2.1
2003/04/14 15:45:54 vincentdarley Exp $

The test fCmd-18.10 fails allways on Linux 2.2.21

CFLAGS=-O  configure ...
make
make test:

fCmd.test:

==== fCmd-18.10 TclFileRenameCmd: rename dir on top of
a non-empty dir w/ -force FAILED
==== Contents of test case:

    catch {file delete -force -- tfa tfad}
    file mkdir tfa tfad/tfa/file
    set r1 [catch {file rename -force tfa tfad}]
    set result [expr $r1 && [file isdir tfa] && [file
isdir tfad/tfa/file]]
    file delete -force tfa tfad
    set result

---- Result was:
0
---- Result should have been (exact matching):
1
==== fCmd-18.10 FAILED


but if I do it manualy in a "shell" it seams to work
like expected:

bash-2.04$ ./tclsh
% catch {file delete -force -- tfa tfad}
0
% file mkdir tfa tfad/tfa/file
% set r1 [catch {file rename -force tfa tfad}]
1
% set result [expr $r1 && [file isdir tfa] && [file
isdir tfad/tfa/file]]
1
% file delete -force tfa tfad
% set result
1
% 

All other tests excluding the stack.test (stack size
warning)
works fine.

if you have any further question 

my e-mail address is : 

[email protected]


Thangs a lot

Andreas Greve
dgpplain2003-06-23 21:14:17
Logged In: YES 
user_id=80530


Looks like a duplicate of
Bug 456665 to me.

Follow up with more
information if your problem
is different.
Log in (anonymous is fine) to add a comment.