Artifacts Associated With Ticket 218290ffffffffff
Ticket change [44614cf6d7] (rid 116701) by nobody on 2000-10-26 00:55:46:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 3507 Bug Version: 8.2.2 SubmitDate: '1999-11-08' LastModified: '2000-04-14' Severity: SER Status: Closed Submitter: techsupp ChangedBy: hobbs OS: Solaris OSVersion: Solaris 2.6 Machine: UltraSPARC 5 FixedDate: '2000-10-25' ClosedDate: '2000-04-14' Name: Larry W. Virden ReproducibleScript: I was startled to discover that whereas in Tcl 8.2.1 there was one long standing bug for which no one has figured out a patch with tcl 8.2.2 there appears to be a number of problems. I did a configure, then a make all and then a make test. ObservedBehavior: error.test e: set f1 [open test1 w] proc accept {s args} { puts $s foobar close $s } catch {set s1 [socket -server accept 5001]} after 1000 catch {set s2 [socket 127.0.0.1 5001]} close $s1 set x 0 set y 0 set z 0 fileevent $s2 readable { incr z } vwait z fileevent $f1 writable { incr x; if { $y == 3 } { set z done } } fileevent $s2 readable { incr y; if { $x == 3 } { set z done } } vwait z close $f1 close $s2 file delete test1 test2 list $x $y $z ==== Test generated error: can't read "s1": no such variable ---- Result should have been: 3 3 done ==== event-11.5 FAILED eval.test event.test ==== exec-4.4 redirecting output and stderr to file FAILED ==== Contents of test case: set f [open gorp.file w] puts $f "Line 1" flush $f exec $::tcltest::tcltest echo "More text" >&@ $f exec $::tcltest::tcltest echo >&@$f "Even more" puts $f "Line 3" close $f exec $::tcltest::tcltest cat gorp.file ==== Test generated error: couldn't open "gorp.file": no such file or directory ---- Result should have been: Line 1 More text Even more Line 3 ==== exec-4.4 FAILED ==== exec-7.1 multiple I/O redirections FAILEDt z close $f1 close $s2 file delete test1 test2 list $x $y $z ==== Test generated error: can't read "s1": no such variable ---- Result should have been: 3 3 done ==== event-11.5 FAILED exec.test ==== exec-5.3 redirecting input from file FAILED ==== Contents of test case: exec $::tcltest::tcltest cat < gorp.file | $::tcltest::tcltest cat ---- Result was: catch { exec [info nameofexecutable] echo foo & } ---- Result should have been: Just a few thoughts ==== exec-5.3 FAILED ==== exec-5.4 redirecting input from file FAILED ==== Contents of test case: exec < gorp.file $::tcltest::tcltest cat | $::tcltest::tcltest cat ---- Result was: catch { exec [info nameofexecutable] echo foo & } ---- Result should have been: Just a few thoughts ==== exec-5.4 FAILED ==== exec-5.5 redirecting input from file FAILED ==== Contents of test case: exec $::tcltest::tcltest cat <gorp.file ---- Result was: catch { exec [info nameofexecutable] echo foo & } ---- Result should have been: Just a few thoughts ==== exec-5.5 FAILED ==== exec-5.6 redirecting input from file FAILED ==== Contents of test case: set f [open gorp.file r] set result [exec $::tcltest::tcltest cat <@ $f] close $f set result ---- Result was: catch { exec [info nameofexecutable] echo foo & } ---- Result should have been: Just a few thoughts ==== exec-5.6 FAILED ==== exec-5.7 redirecting input from file FAILED ==== Contents of test case: set f [open gorp.file r] set result [exec <@$f $::tcltest::tcltest cat] close $f set result ---- Result was: catch { exec [info nameofexecutable] echo foo & } ---- Result should have been: Just a few thoughts ==== exec-5.7 FAILED ==== exec-7.1 multiple I/O redirections FAILED ==== Contents of test case: exec << "command input" > gorp.file2 $::tcltest::tcltest cat < gorp.file exec $::tcltest::tcltest cat gorp.file2 ---- Result was: catch { exec [info nameofexecutable] echo foo & } ---- Result should have been: Just a few thoughts ==== exec-7.1 FAILED ==== exec-11.5 commands in background FAILED ==== Contents of test case: set f [open gorp.file w] puts $f { catch { exec [info nameofexecutable] echo foo & } } close $f string compare "foo" [exec $::tcltest::tcltest gorp.file] ---- Result was: 1 ---- Result should have been: 0 ==== exec-11.5 FAILED ==== exec-15.1 standard error redirection FAILED ==== Contents of test case: exec $::tcltest::tcltest echo "First line" > gorp.file list [exec $::tcltest::tcltest sh -c "echo foo bar 1>&2" 2> gorp.file] [exec $::tcltest::tcltest cat gorp.file] ==== Test generated error: couldn't read file "cat": no such file or directory ---- Result should have been: {} {foo bar} ==== exec-15.1 FAILED ==== exec-15.2 standard error redirection FAILED ==== Contents of test case: list [exec $::tcltest::tcltest sh -c "echo foo bar 1>&2" | $::tcltest::tcltest echo biz baz >gorp.file 2> gorp.file2] [exec $::tcltest::tcltest cat gorp.file] [exec $::tcltest::tcltest cat gorp.file2] ==== Test generated error: child process exited abnormally ---- Result should have been: {} {biz baz} {foo bar} ==== exec-15.2 FAILED ==== exec-15.3 standard error redirection FAILED ==== Contents of test case: list [exec $::tcltest::tcltest sh -c "echo foo bar 1>&2" | $::tcltest::tcltest echo biz baz 2>gorp.file > gorp.file2] [exec $::tcltest::tcltest cat gorp.file] [exec $::tcltest::tcltest cat gorp.file2] ==== Test generated error: child process exited abnormally ---- Result should have been: {} {foo bar} {biz baz} ==== exec-15.3 FAILED ==== exec-15.4 standard error redirection FAILED ==== Contents of test case: set f [open gorp.file w] puts $f "Line 1" flush $f exec $::tcltest::tcltest sh -c "echo foo bar 1>&2" 2>@ $f puts $f "Line 3" close $f exec $::tcltest::tcltest cat gorp.file ==== Test generated error: child process exited abnormally ---- Result should have been: Line 1 foo bar Line 3 ==== exec-15.4 FAILED ==== exec-15.5 standard error redirection FAILED ==== Contents of test case: exec $::tcltest::tcltest echo "First line" > gorp.file exec $::tcltest::tcltest sh -c "echo foo bar 1>&2" 2>> gorp.file exec $::tcltest::tcltest cat gorp.file ==== Test generated error: couldn't read file "echo": no such file or directory ---- Result should have been: First line foo bar ==== exec-15.5 FAILED ==== exec-15.6 standard error redirection FAILED ==== Contents of test case: exec $::tcltest::tcltest sh -c "echo foo bar 1>&2" > gorp.file2 2> gorp.file >& gorp.file 2> gorp.file2 | $::tcltest::tcltest echo biz baz list [exec $::tcltest::tcltest cat gorp.file] [exec $::tcltest::tcltest cat gorp.file2] ==== Test generated error: child process exited abnormally ---- Result should have been: {biz baz} {foo bar} ==== exec-15.6 FAILED ==== exec-16.1 flush output before exec FAILED ==== Contents of test case: set f [open gorp.file w] puts $f "First line" exec $::tcltest::tcltest echo "Second line" >@ $f puts $f "Third line" close $f exec $::tcltest::tcltest cat gorp.file ==== Test generated error: couldn't read file "echo": no such file or directory ---- Result should have been: First line Second line Third line ==== exec-16.1 FAILED ==== exec-16.2 flush output before exec FAILED ==== Contents of test case: set f [open gorp.file w] puts $f "First line" exec $::tcltest::tcltest << {puts stderr {Second line}} >&@ $f > gorp.file2 puts $f "Third line" close $f exec $::tcltest::tcltest cat gorp.file ==== Test generated error: couldn't read file "cat": no such file or directory ---- Result should have been: First line Second line Third line ==== exec-16.2 FAILED ==== exec-17.1 inheriting standard I/O FAILED ==== Contents of test case: set f [open script w] puts $f {close stdout set f [open gorp.file w] catch {exec [info nameofexecutable] echo foobar &} exec [info nameofexecutable] sleep 2 close $f } close $f catch {exec $::tcltest::tcltest script} result set f [open gorp.file r] lappend result [read $f] close $f set result ==== Test generated error: list element in quotes followed by ":" instead of space ---- Result should have been: {foobar } ==== exec-17.1 FAILED execute.test expr-old.test expr.test fCmd.test eak on first error FAILED ==== Contents of test case: cleanup createfile tf1 createfile tf2 createfile tf3 createfile tf4 file mkdir td1 createfile [file join td1 tf3] list [catch {file rename tf1 tf2 tf3 tf4 td1} msg] $msg ---- Result was: 1 {error renaming "tf1" to "td1/tf1": no such file or directory} ---- Result should have been: 1 {error renaming "tf3" to "td1/tf3": file already exists} ==== fCmd-3.16 FAILED ==== fCmd-5.3 TclFileDeleteCmd: 1 file FAILED ==== Contents of test case: cleanup createfile tf1 createfile tf2 file mkdir td1 file delete tf2 glob tf* td* ---- Result was: td1 ---- Result should have been: tf1 td1 ==== fCmd-5.3 FAILED ==== fCmd-5.4 TclFileDeleteCmd: multiple files FAILED ==== Contents of test case: cleanup createfile tf1 createfile tf2 file mkdir td1 set x [list [file exist tf1] [file exist tf2] [file exist td1]] file delete tf1 td1 tf2 lappend x [file exist tf1] [file exist tf2] [file exist tf3] ==== Test generated error: error deleting "td1": no such file or directory ---- Result should have been: 1 1 1 0 0 0 ==== fCmd-5.4 FAILED ==== fCmd-5.5 TclFileDeleteCmd: stop at first error FAILED ==== Contents of test case: cleanup createfile tf1 createfile tf2 file mkdir td1 catch {file delete tf1 td1 $root tf2} list [file exist tf1] [file exist tf2] [file exist td1] ---- Result was: 0 0 0 ---- Result should have been: 0 1 0 ==== fCmd-5.5 FAILED ==== fCmd-3.16 FileCopyRename: break on first error FAILED ==== Contents of test case: cleanup createfile tf1 createfile tf2 createfile tf3 createfile tf4 file mkdir td1 createfile [file join td1 tf3] list [catch {file rename tf1 tf2 tf3 tf4 td1} msg] $msg ---- Result was: 1 {error renaming "tf1" to "td1/tf1": no such file or directory} ---- Result should have been: 1 {error renaming "tf3" to "td1/tf3": file already exists} ==== fCmd-3.16 FAILED ==== fCmd-5.3 TclFileDeleteCmd: 1 file FAILED ==== Contents of test case: cleanup createfile tf1 createfile tf2 file mkdir td1 file delete tf2 glob tf* td* ---- Result was: tf1 td1 td2 ---- Result should have been: tf1 td1 ==== fCmd-5.3 FAILED ==== fCmd-5.4 TclFileDeleteCmd: multiple files FAILED ==== Contents of test case: cleanup createfile tf1 createfile tf2 file mkdir td1 set x [list [file exist tf1] [file exist tf2] [file exist td1]] file delete tf1 td1 tf2 lappend x [file exist tf1] [file exist tf2] [file exist tf3] ---- Result was: 1 1 1 1 0 0 ---- Result should have been: 1 1 1 0 0 0 ==== fCmd-5.4 FAILED ==== fCmd-6.16 CopyRenameOneFile: TclpCopyRenameOneFile fails FAILED ==== Contents of test case: cleanup file mkdir [file join td1 td2] createfile [file join td1 td2 tf1] file mkdir td2 list [catch {file rename -force td2 td1} msg] $msg ---- Result was: 0 {} ---- Result should have been: 1 {error renaming "td2" to "td1/td2": file already exists} ==== fCmd-6.16 FAILED ==== fCmd-6.25 CopyRenameOneFile: error uses original name FAILED ==== Contents of test case: cleanup file mkdir td2 file mkdir ~/td1 exec chmod 000 [file join [file dirname ~] [file tail ~] td1] set msg [list [catch {file copy td2 ~/td1} msg] $msg] exec chmod 755 [file join [file dirname ~] [file tail ~] td1] file delete -force ~/td1 set msg ---- Result was: 1 {error copying "td2": no such file or directory} ---- Result should have been: 1 {error copying "td2" to "~/td1/td2": permission denied} ==== fCmd-6.25 FAILED ==== fCmd-6.26 CopyRenameOneFile: doesn't use original name FAILED ==== Contents of test case: cleanup file mkdir ~/td1/td2 exec chmod 000 [file join [file dirname ~] [file tail ~] td1 td2] set msg [list [catch {file copy ~/td1 td1} msg] $msg] exec chmod 755 [file join [file dirname ~] [file tail ~] td1 td2] file delete -force ~/td1 set msg ---- Result was: 1 {error copying "~/td1" to "td1/td1": "/home/lwv26/td1/td2": permission denied} ---- Result should have been: 1 {error copying "~/td1" to "td1": "/home/lwv26/td1/td2": permission denied} ==== fCmd-6.26 FAILED ==== fCmd-9.4 file rename: comprehensive: dir to new name FAILED ==== Contents of test case: cleanup file mkdir td1 td2 testchmod 555 td2 file rename td1 td3 file rename td2 td4 list [lsort [glob td*]] [file writable td3] [file writable td4] ==== Test generated error: no files matched glob pattern "td*" ---- Result should have been: {td3 td4} 1 0 ==== fCmd-9.4 FAILED ==== fCmd-9.7 file rename: comprehensive: file to existing file FAILED ==== Contents of test case: cleanup createfile tf1 createfile tf2 createfile tfs1 createfile tfs2 createfile tfs3 createfile tfs4 createfile tfd1 createfile tfd2 createfile tfd3 createfile tfd4 testchmod 444 tfs3 testchmod 444 tfs4 testchmod 444 tfd2 testchmod 444 tfd4 set msg [list [catch {file rename tf1 tf2} msg] $msg] file rename -force tfs1 tfd1 file rename -force tfs2 tfd2 file rename -force tfs3 tfd3 file rename -force tfs4 tfd4 list [lsort [glob tf*]] $msg [file writable tfd1] [file writable tfd2] [file writable tfd3] [file writable tfd4] ==== Test generated error: error renaming "tfs1": no such file or directory ---- Result should have been: {tf1 tf2 tfd1 tfd2 tfd3 tfd4} {1 {error renaming "tf1" to "tf2": file already exists}} 1 1 0 0 ==== fCmd-9.7 FAILED ==== fCmd-9.8 file rename: comprehensive: dir to empty dir FAILED ==== Contents of test case: # Under unix, you can rename a read-only directory, but you can't # move it into another directory. cleanup file mkdir td1 file mkdir [file join td2 td1] file mkdir tds1 file mkdir tds2 file mkdir tds3 file mkdir tds4 file mkdir [file join tdd1 tds1] file mkdir [file join tdd2 tds2] file mkdir [file join tdd3 tds3] file mkdir [file join tdd4 tds4] if {$tcl_platform(platform) != "unix" && $tcl_platform(platform) != "macintosh"} { testchmod 555 tds3 testchmod 555 tds4 } if {$tcl_platform(platform) != "macintosh"} { testchmod 555 [file join tdd2 tds2] testchmod 555 [file join tdd4 tds4] } set msg [list [catch {file rename td1 td2} msg] $msg] file rename -force tds1 tdd1 file rename -force tds2 tdd2 file rename -force tds3 tdd3 file rename -force tds4 tdd4 if {$tcl_platform(platform) != "unix" && $tcl_platform(platform) != "macintosh"} { set w3 [file writable [file join tdd3 tds3]] set w4 [file writable [file join tdd4 tds4]] } else { set w3 0 set w4 0 } list [lsort [glob td*]] $msg [file writable [file join tdd1 tds1]] [file writable [file join tdd2 tds2]] $w3 $w4 ==== Test generated error: error renaming "tds1" to "tdd1/tds1": no such file or directory ---- Result should have been: {td1 td2 tdd1 tdd2 tdd3 tdd4} {1 {error renaming "td1" to "td2/td1": file already exists}} 1 1 0 0 ==== fCmd-9.8 FAILED ==== fCmd-9.9 file rename: comprehensive: dir to non-empty dir FAILED ==== Contents of test case: cleanup file mkdir tds1 file mkdir tds2 file mkdir [file join tdd1 tds1 xxx] file mkdir [file join tdd2 tds2 xxx] if {$tcl_platform(platform) != "unix" && $tcl_platform(platform) != "macintosh"} { testchmod 555 tds2 } set a1 [list [catch {file rename -force tds1 tdd1} msg] $msg] set a2 [list [catch {file rename -force tds2 tdd2} msg] $msg] if {$tcl_platform(platform) != "unix" && $tcl_platform(platform) != "macintosh"} { set w2 [file writable tds2] } else { set w2 0 } list [lsort [glob td*]] $a1 $a2 [file writable tds1] $w2 ---- Result was: {tdd1 tdd2} {1 {error renaming "tds1": no such file or directory}} {1 {error renaming "tds2": no such file or directory}} 0 0 ---- Result should have been: {tdd1 tdd2 tds1 tds2} {1 {error renaming "tds1" to "tdd1/tds1": file already exists}} {1 {error renaming "tds2" to "tdd2/tds2": file already exists}} 1 0 ==== fCmd-9.9 FAILED ==== fCmd-9.10 file rename: comprehensive: file to new name and dir FAILED ==== Contents of test case: cleanup createfile tf1 createfile tf2 file mkdir td1 testchmod 444 tf2 file rename tf1 [file join td1 tf3] file rename tf2 [file join td1 tf4] list [catch {glob tf*}] [lsort [glob [file join td1 t*]]] [file writable [file join td1 tf3]] [file writable [file join td1 tf4]] ---- Result was: 0 {td1/tf3 td1/tf4} 1 0 ---- Result should have been: 1 {td1/tf3 td1/tf4} 1 0 ==== fCmd-9.10 FAILED ==== fCmd-9.4 file rename: comprehensive: dir to new name FAILED ==== Contents of test case: cleanup file mkdir [file join td1 td2] [file join td2 td1] if {$tcl_platform(platform) != "macintosh"} { testchmod 555 [file join td2 td1] } file mkdir [file join td3 td4] [file join td4 td3] file rename -force td3 td4 set msg [list [file exists td3] [file exists [file join td4 td3 td4]] [catch {file rename td1 td2} msg] $msg] if {$tcl_platform(platform) != "macintosh"} { testchmod 755 [file join td2 td1] } set msg ---- Result was: 0 1 1 {error renaming "td1": no such file or directory} ---- Result should have been: 0 1 1 {error renaming "td1" to "td2/td1": file already exists} ==== fCmd-9.12 FAILED ==== fCmd-9.14 file rename: comprehensive: dir into self FAILED ==== Contents of test case: cleanup file mkdir td1 list [glob td*] [list [catch {file rename td1 td1} msg] $msg] ---- Result was: td1 {1 {error renaming "td1": no such file or directory}} ---- Result should have been: td1 {1 {error renaming "td1" to "td1/td1": trying to rename a volume or move a directory into itself}} ==== fCmd-9.14 FAILED ==== fCmd-10.2 file copy: comprehensive: file to new name FAILED ==== Contents of test case: cleanup createfile tf1 tf1 createfile tf2 tf2 testchmod 444 tf2 file copy tf1 tf3 file copy tf2 tf4 list [lsort [glob tf*]] [contents tf3] [contents tf4] [file writable tf3] [file writable tf4] ==== Test generated error: no files matched glob pattern "tf*" ---- Result should have been: {tf1 tf2 tf3 tf4} tf1 tf2 1 0 ==== fCmd-10.2 FAILED ==== fCmd-10.4 file copy: comprehensive: file to existing file FAILED ==== Contents of test case: cleanup createfile tf1 createfile tf2 createfile tfs1 createfile tfs2 createfile tfs3 createfile tfs4 createfile tfd1 createfile tfd2 createfile tfd3 createfile tfd4 testchmod 444 tfs3 testchmod 444 tfs4 testchmod 444 tfd2 testchmod 444 tfd4 set msg [list [catch {file copy tf1 tf2} msg] $msg] file copy -force tfs1 tfd1 file copy -force tfs2 tfd2 file copy -force tfs3 tfd3 file copy -force tfs4 tfd4 list [lsort [glob tf*]] $msg [file writable tfd1] [file writable tfd2] [file writable tfd3] [file writable tfd4] ==== Test generated error: no files matched glob pattern "tf*" ---- Result should have been: {tf1 tf2 tfd1 tfd2 tfd3 tfd4 tfs1 tfs2 tfs3 tfs4} {1 {error copying "tf1" to "tf2": file already exists}} 1 1 0 0 ==== fCmd-10.4 FAILED ==== fCmd-10.5 file copy: comprehensive: dir to empty dir FAILED ==== Contents of test case: cleanup file mkdir td1 file mkdir [file join td2 td1] file mkdir tds1 file mkdir tds2 file mkdir tds3 file mkdir tds4 file mkdir [file join tdd1 tds1] file mkdir [file join tdd2 tds2] file mkdir [file join tdd3 tds3] file mkdir [file join tdd4 tds4] if {$tcl_platform(platform) != "macintosh"} { testchmod 555 tds3 testchmod 555 tds4 testchmod 555 [file join tdd2 tds2] testchmod 555 [file join tdd4 tds4] } set a1 [list [catch {file copy td1 td2} msg] $msg] set a2 [list [catch {file copy -force tds1 tdd1} msg] $msg] set a3 [catch {file copy -force tds2 tdd2}] set a4 [catch {file copy -force tds3 tdd3}] set a5 [catch {file copy -force tds4 tdd4}] list [lsort [glob td*]] $a1 $a2 $a3 $a4 $a5 ---- Result was: {tdd1 tdd2 tdd3 tdd4 tds2 tds3 tds4} {1 {error copying "td1": no such file or directory}} {1 {error copying "tds1": no such file or directory}} 1 1 1 ---- Result should have been: {td1 td2 tdd1 tdd2 tdd3 tdd4 tds1 tds2 tds3 tds4} {1 {error copying "td1" to "td2/td1": file already exists}} {1 {error copying "tds1" to "tdd1/tds1": file already exists}} 1 1 1 ==== fCmd-10.5 FAILED ==== fCmd-10.6 file copy: comprehensive: dir to non-empty dir FAILED ==== Contents of test case: cleanup file mkdir tds1 file mkdir tds2 file mkdir [file join tdd1 tds1 xxx] file mkdir [file join tdd2 tds2 xxx] testchmod 555 tds2 set a1 [list [catch {file copy -force tds1 tdd1} msg] $msg] set a2 [list [catch {file copy -force tds2 tdd2} msg] $msg] list [lsort [glob td*]] $a1 $a2 [file writable tds1] [file writable tds2] ---- Result was: {td1 tdd1 tdd2 tds2} {1 {error copying "tds1": no such file or directory}} {1 {error copying "tds2" to "tdd2/tds2": file already exists}} 0 0 ---- Result should have been: {tdd1 tdd2 tds1 tds2} {1 {error copying "tds1" to "tdd1/tds1": file already exists}} {1 {error copying "tds2" to "tdd2/tds2": file already exists}} 1 0 ==== fCmd-10.6 FAILED ==== fCmd-10.7 file rename: comprehensive: file to new name and dir FAILED ==== Contents of test case: cleanup createfile tf1 createfile tf2 file mkdir td1 testchmod 444 tf2 file copy tf1 [file join td1 tf3] file copy tf2 [file join td1 tf4] list [lsort [glob tf*]] [lsort [glob [file join td1 t*]]] [file writable [file join td1 tf3]] [file writable [file join td1 tf4]] ==== Test generated error: can't create directory "td1": file already exists ---- Result should have been: {tf1 tf2} {td1/tf3 td1/tf4} 1 0 ==== fCmd-10.7 FAILED ==== fCmd-10.8 file rename: comprehensive: dir to new name and dir FAILED ==== Contents of test case: cleanup file mkdir td1 file mkdir td2 file mkdir td3 testchmod 555 td2 file copy td1 [file join td3 td3] file copy td2 [file join td3 td4] list [lsort [glob td*]] [lsort [glob [file join td3 t*]]] [file writable [file join td3 td3]] [file writable [file join td3 td4]] ==== Test generated error: error copying "td2" to "td3/td4/td2": no such file or directory ---- Result should have been: {td1 td2 td3} {td3/td3 td3/td4} 1 0 ==== fCmd-10.8 FAILED ==== fCmd-12.4 renamefile: error renaming file to directory FAILED ==== Contents of test case: catch {file delete -force -- tfa tfad} set s1 [createfile tfa ] file mkdir tfad file mkdir tfad/tfa set r1 [catch {file rename tfa tfad}] set r2 [checkcontent tfa $s1] set r3 [file isdir tfad/tfa] set result [expr $r1 && $r2 && $r3] file delete -force tfa tfad set result ==== Test generated error: error deleting "tfad": no such file or directory ---- Result should have been: 1 ==== fCmd-12.4 FAILED ==== fCmd-12.7 renamefile: renaming directory into offspring FAILED ==== Contents of test case: catch {file delete -force -- tfad} file mkdir tfad file mkdir tfad/dir set result [catch {file rename tfad tfad/dir}] file delete -force tfad set result ==== Test generated error: error deleting "tfad": no such file or directory ---- Result should have been: 1 ==== fCmd-12.7 FAILED ==== fCmd-14.7 copyfile: copy directory succeeding FAILED ==== Contents of test case: catch {file delete -force -- tfa tfa2} file mkdir tfa set s [createfile tfa/file] file copy tfa tfa2 set result [expr [checkcontent tfa/file $s] && [checkcontent tfa2/file $s]] file delete -force tfa tfa2 set result ==== Test generated error: error deleting "tfa2": no such file or directory ---- Result should have been: 1 ==== fCmd-14.7 FAILED ==== fCmd-15.5 TclMakeDirsCmd: - making a directory several levels deep FAILED ==== Contents of test case: catch {file delete -force -- tfa} file mkdir tfa/a/b/c set result [file isdir tfa/a/b/c] file delete -force tfa set result ==== Test generated error: error deleting "tfa/a": no such file or directory ---- Result should have been: 1 ==== fCmd-15.5 FAILED ==== fCmd-16.9 error while deleting file FAILED ==== Contents of test case: catch {file delete -force -- tfa} file mkdir tfa createfile tfa/a exec chmod 555 tfa set result [catch {file delete tfa/a }] ####### ####### If any directory in a tree that is being removed does not ####### have write permission, the process will fail! ####### This is also the case with "rm -rf" ####### exec chmod 777 tfa file delete -force tfa set result ==== Test generated error: chmod: WARNING: can't access tfa ---- Result should have been: 1 ==== fCmd-16.9 FAILED ==== fCmd-17.1 mkdir stat failing on target but not ENOENT FAILED ==== Contents of test case: catch {file delete -force -- tfa1} file mkdir tfa1 exec chmod 555 tfa1 set result [catch {file mkdir tfa1/tfa2}] exec chmod 777 tfa1 file delete -force tfa1 set result ==== Test generated error: chmod: WARNING: can't access tfa1 ---- Result should have been: 1 ==== fCmd-17.1 FAILED ==== fCmd-17.3 mkdir several levels deep - absolute FAILED ==== Contents of test case: catch {file delete -force -- tfa} set f [file join [pwd] tfa a ] file mkdir $f set result [file isdir $f ] file delete $f [file join [pwd] tfa] set result ==== Test generated error: error deleting "/vol/tclsrcsol/tcl82/tcl8.2.2/unix/tfa": no such file or directory ---- Result should have been: 1 ==== fCmd-17.3 FAILED ==== fCmd-18.1 TclFileRenameCmd: rename (first form) in the same directory FAILED ==== Contents of test case: catch {file delete -force -- tfad} file mkdir tfad/dir cd tfad/dir set s [createfile foo ] file rename foo bar file rename bar ./foo file rename ./foo bar file rename ./bar ./foo file rename foo ../dir/bar file rename ../dir/bar ./foo file rename ../../tfad/dir/foo ../../tfad/dir/bar file rename [file join [pwd] bar] foo file rename foo [file join [pwd] bar] set result [expr [checkcontent bar $s] && ![file exists foo]] cd ../.. file delete -force tfad set result ==== Test generated error: error renaming "./foo": no such file or directory ---- Result should have been: 1 ==== fCmd-18.1 FAILED ==== fCmd-18.2 TclFileRenameCmd: single dir to nonexistant FAILED ==== Contents of test case: catch {file delete -force -- tfa1 tfa2} file mkdir tfa1 file rename tfa1 tfa2 set result [expr [file exists tfa2] && ![file exists tfa1]] file delete tfa2 set result ==== Test generated error: can't create directory "tfa1": no such file or directory ---- Result should have been: 1 ==== fCmd-18.2 FAILED ==== fCmd-18.3 TclFileRenameCmd: mixed dirs and files into directory FAILED ==== Contents of test case: catch {file delete -force -- tfa1 tfad1 tfad2} set s [createfile tfa1 ] file mkdir tfad1 tfad2 file rename tfa1 tfad1 tfad2 set r1 [checkcontent tfad2/tfa1 $s] set r2 [file isdir tfad2/tfad1] set result [expr $r1 && $r2 && ![file exists tfa1] && ![file exists tfad1]] file delete tfad2/tfa1 file delete -force tfad2 set result ==== Test generated error: couldn't open "tfa1": stale remote file handle ---- Result should have been: 1 ==== fCmd-18.3 FAILED ==== fCmd-18.4 TclFileRenameCmd: attempt to replace non-dir with dir FAILED ==== Contents of test case: catch {file delete -force -- tfa tfad} set s [createfile tfa ] file mkdir tfad set r1 [catch {file rename tfad tfa}] set r2 [checkcontent tfa $s] set r3 [file isdir tfad] set result [expr $r1 && $r2 && $r3 ] file delete tfa tfad set result ==== Test generated error: couldn't open "tfa": stale remote file handle ---- Result should have been: 1 ==== fCmd-18.4 FAILED ==== fCmd-18.5 TclFileRenameCmd: attempt to replace dir with non-dir FAILED ==== Contents of test case: catch {file delete -force -- tfa tfad} set s [createfile tfa ] file mkdir tfad/tfa set r1 [catch {file rename tfa tfad}] set r2 [checkcontent tfa $s] set r3 [file isdir tfad/tfa] set result [expr $r1 && $r2 && $r3 ] file delete -force tfa tfad set result ==== Test generated error: couldn't open "tfa": stale remote file handle ---- Result should have been: 1 ==== fCmd-18.5 FAILED ==== fCmd-18.6 TclFileRenameCmd: rename a file to itself FAILED ==== Contents of test case: catch {file delete -force -- tfa} set s [createfile tfa] set r1 [catch {file rename tfa tfa}] set result [expr $r1 && [checkcontent tfa $s]] file delete tfa set result ==== Test generated error: couldn't open "tfa": stale remote file handle ---- Result should have been: 1 ==== fCmd-18.6 FAILED ==== fCmd-18.7 TclFileRenameCmd: rename dir on top of another empty dir w/o -force FAILED ==== Contents of test case: catch {file delete -force -- tfa tfad} file mkdir tfa tfad/tfa set r1 [catch {file rename tfa tfad}] set result [expr $r1 && [file isdir tfa]] file delete -force tfa tfad set result ==== Test generated error: can't create directory "tfa": stale remote file handle ---- Result should have been: 1 ==== fCmd-18.7 FAILED ==== fCmd-18.8 TclFileRenameCmd: rename dir on top of another empty dir w/ -force FAILED ==== Contents of test case: catch {file delete -force -- tfa tfad} file mkdir tfa tfad/tfa file rename -force tfa tfad set result [expr ![file isdir tfa]] file delete -force tfad set result ==== Test generated error: can't create directory "tfa": stale remote file handle ---- Result should have been: 1 ==== fCmd-18.8 FAILED ==== fCmd-18.9 TclFileRenameCmd: rename dir on top of a non-empty dir w/o -force FAILED ==== Contents of test case: catch {file delete -force -- tfa tfad} file mkdir tfa tfad/tfa/file set r1 [catch {file rename tfa tfad}] set result [expr $r1 && [file isdir tfa] && [file isdir tfad/tfa/file]] file delete -force tfa tfad set result ==== Test generated error: can't create directory "tfa": stale remote file handle ---- Result should have been: 1 ==== fCmd-18.9 FAILED ==== 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 ==== Test generated error: can't create directory "tfa": stale remote file handle ---- Result should have been: 1 ==== fCmd-18.10 FAILED ==== fCmd-18.12 TclFileRenameCmd : rename a symbolic link to file FAILED ==== Contents of test case: catch {file delete -force -- tfa1 tfa2 tfa3} set s [createfile tfa1] exec ln -s tfa1 tfa2 file rename tfa2 tfa3 set t [file type tfa3] set result [expr { $t == "link" }] file delete tfa1 tfa3 set result ==== Test generated error: couldn't open "tfa1": stale remote file handle ---- Result should have been: 1 ==== fCmd-18.12 FAILED ==== fCmd-18.13 TclFileRenameCmd : rename a symbolic link to dir FAILED ==== Contents of test cas Looks like a series of cascading errors. The test suite is somewhat inflexible, expecting certain directories to be writable and certain ports to be open. We certainly don't see these problems in any pristine env for testing Tcl (or even most dirty env's). -- 04/14/2000 hobbs - foundin initialized to: "obsolete: 8.2.2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "85. tclconfig"
- title initialized to:
Test suite fails much worse in 8.2.2 (many exec & fCmd failu
- type initialized to: "Bug"
Ticket change [04297a1873] (rid 119947) by welch on 2000-10-26 08:18:58:
- closedate changed to: "2000-10-26T01:18:58"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [5c012e668f] (rid 118420) by dgp on 2001-04-06 02:40:49:
- closedate changed to: "2001-04-05T19:40:49"
- closer changed to: "dgp"
- subsystem changed to: "69. Other"