Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Multiple "make test" failures on NetBSD

Deleted218606ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:03:01
OriginalBugID: 1431 Bug
Version: 8.0.4
SubmitDate: '1999-03-04'
LastModified: '1999-08-15'
Severity: LOW
Status: Released
Submitter: pat
ChangedBy: hobbs
RelatedBugIDs: 1413 1407
OS: Other
OSVersion: NetBSD/i386 1.3.2
Machine: NA
FixedDate: '1999-08-15'
FixedInVersion: 8.0.5
ClosedDate: '2000-10-25'


Name:
Andreas Gustafsson

Extensions:
none

CustomShell:
none

ReproducibleScript:
cd unix
configure
make
make test

ObservedBehavior:
append.test
assocd.test
async.test
autoMkindex.test
basic.test
binary.test
case.test
clock.test
cmdAH.test
cmdIL.test
cmdInfo.test
compile.test
concat.test
dcall.test
dstring.test
env.test
error.test
eval.test
event.test
exec.test
execute.test
expr-old.test
expr.test
fCmd.test

==== fCmd-6.30 CopyRenameOneFile: TclpRemoveDirectory failed      --- (unixOnly) -- -
==== 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

==== Result was:
0
---- Result should have been:
1
---- fCmd-6.30 FAILED
fileName.test
for-old.test
for.test
foreach.test
format.test
get.test
history.test
http.test
httpold.test
Running http 1.0 tests in slave interp
iOUtil.test
if-old.test
if.test
incr-old.test
incr.test
indexObj.test
info.test
init.test
interp.test
io.test
ioCmd.test
join.test
lindex.test
link.test
linsert.test
list.test
listObj.test
llength.test
load.test
lrange.test
lreplace.test
lsearch.test
macFCmd.test
misc.test
namespace-old.test
namespace.test
obj.test
opt.test
osa.test
skipping: Mac only tests...
parse.test
pid.test
pkg.test
pkgMkIndex.test

==== pkgMkIndex-1.1 nothing matches pattern - current dir is the same
==== Contents of test case:

    list [pkgtest::runIndex pkg nomatch.tcl] [pwd]

==== Result was:
{1 {couldn't change working directory to "pkg": no such file or directory}} /x/tcl8 .0.4/tests
---- Result should have been:
{1 {no files matched glob pattern "nomatch.tcl"}} /x/tcl8.0.4/tests
---- pkgMkIndex-1.1 FAILED

==== pkgMkIndex-2.1 simple package
==== Contents of test case:

    pkgtest::runIndex pkg simple.tcl

==== Result was:
1 {couldn't change working directory to "pkg": no such file or directory}
---- Result should have been:
0 {{simple:1.0 {tclPkgSetup {simple.tcl source {::simple::lower ::simple::upper}}}} }
---- pkgMkIndex-2.1 FAILED

==== pkgMkIndex-2.2 simple package - use -direct
==== Contents of test case:

    pkgtest::runIndex -direct pkg simple.tcl

==== Result was:
1 {couldn't change working directory to "pkg": no such file or directory}
---- Result should have been:
0 {{simple:1.0 {source pkg/simple.tcl}}}
---- pkgMkIndex-2.2 FAILED

==== pkgMkIndex-3.1 simple package with global symbols
==== Contents of test case:

    pkgtest::runIndex pkg global.tcl

==== Result was:
1 {couldn't change working directory to "pkg": no such file or directory}
---- Result should have been:
0 {{global:1.0 {tclPkgSetup {global.tcl source {global_lower global_upper}}}}}
---- pkgMkIndex-3.1 FAILED

==== pkgMkIndex-4.1 split package
==== Contents of test case:

    pkgtest::runIndex pkg pkg2_a.tcl pkg2_b.tcl

==== Result was:
1 {couldn't change working directory to "pkg": no such file or directory}
---- Result should have been:
0 {{pkg2:1.0 {tclPkgSetup {pkg2_a.tcl source ::pkg2::p2-1} {pkg2_b.tcl source ::pkg 2::p2-2}}}}
---- pkgMkIndex-4.1 FAILED

==== pkgMkIndex-4.2 split package - direct loading
==== Contents of test case:

    pkgtest::runIndex -direct pkg pkg2_a.tcl pkg2_b.tcl

==== Result was:
1 {couldn't change working directory to "pkg": no such file or directory}
---- Result should have been:
0 {{pkg2:1.0 {source pkg/pkg2_a.tcl
source pkg/pkg2_b.tcl}}}
---- pkgMkIndex-4.2 FAILED

==== pkgMkIndex-5.1 requires -direct package
==== Contents of test case:

    pkgtest::runIndex pkg std.tcl

==== Result was:
1 {couldn't change working directory to "pkg": no such file or directory}
---- Result should have been:
0 {{std:1.0 {tclPkgSetup {std.tcl source {::std::p1 ::std::p2}}}}}
---- pkgMkIndex-5.1 FAILED

==== pkgMkIndex-6.1 pkg1 requires pkg3
==== Contents of test case:

    pkgtest::runIndex pkg pkg1.tcl pkg3.tcl

==== Result was:
1 {couldn't change working directory to "pkg": no such file or directory}
---- Result should have been:
0 {{pkg1:1.0 {tclPkgSetup {pkg1.tcl source {::pkg1::p1-1 ::pkg1::p1-2}}}} {pkg3:1.0 {tclPkgSetup {pkg3.tcl source {::pkg3::p3-1 ::pkg3::p3-2}}}}}
---- pkgMkIndex-6.1 FAILED

==== pkgMkIndex-6.2 pkg1 requires pkg3 - use -direct
==== Contents of test case:

    pkgtest::runIndex -direct pkg pkg1.tcl pkg3.tcl

==== Result was:
1 {couldn't change working directory to "pkg": no such file or directory}
---- Result should have been:
0 {{pkg1:1.0 {source pkg/pkg1.tcl}} {pkg3:1.0 {source pkg/pkg3.tcl}}}
---- pkgMkIndex-6.2 FAILED

==== pkgMkIndex-7.1 pkg4 uses pkg3
==== Contents of test case:

    pkgtest::runIndex pkg pkg4.tcl pkg3.tcl

==== Result was:
1 {couldn't change working directory to "pkg": no such file or directory}
---- Result should have been:
0 {{pkg3:1.0 {tclPkgSetup {pkg3.tcl source {::pkg3::p3-1 ::pkg3::p3-2}}}} {pkg4:1.0 {tclPkgSetup {pkg4.tcl source {::pkg4::p4-1 ::pkg4::p4-2}}}}}
---- pkgMkIndex-7.1 FAILED

==== pkgMkIndex-7.2 pkg4 uses pkg3 - use -direct
==== Contents of test case:

    pkgtest::runIndex -direct pkg pkg4.tcl pkg3.tcl

==== Result was:
1 {couldn't change working directory to "pkg": no such file or directory}
---- Result should have been:
0 {{pkg3:1.0 {source pkg/pkg3.tcl}} {pkg4:1.0 {source pkg/pkg4.tcl}}}
---- pkgMkIndex-7.2 FAILED

==== pkgMkIndex-8.1 pkg5 uses pkg2
==== Contents of test case:

    pkgtest::runIndex pkg pkg5.tcl pkg2_a.tcl pkg2_b.tcl

==== Result was:
1 {couldn't change working directory to "pkg": no such file or directory}
---- Result should have been:
0 {{pkg2:1.0 {tclPkgSetup {pkg2_a.tcl source ::pkg2::p2-1} {pkg2_b.tcl source ::pkg 2::p2-2}}} {pkg5:1.0 {tclPkgSetup {pkg5.tcl source {::pkg5::p5-1 ::pkg5::p5-2}}}}}
---- pkgMkIndex-8.1 FAILED

==== pkgMkIndex-8.2 pkg5 uses pkg2 - use -direct
==== Contents of test case:

    pkgtest::runIndex -direct pkg pkg5.tcl pkg2_a.tcl pkg2_b.tcl

==== Result was:
1 {couldn't change working directory to "pkg": no such file or directory}
---- Result should have been:
0 {{pkg2:1.0 {source pkg/pkg2_a.tcl
source pkg/pkg2_b.tcl}} {pkg5:1.0 {source pkg/pkg5.tcl}}}
---- pkgMkIndex-8.2 FAILED

==== pkgMkIndex-9.1 circular packages
==== Contents of test case:

    pkgtest::runIndex pkg circ1.tcl circ2.tcl circ3.tcl

==== Result was:
1 {couldn't change working directory to "pkg": no such file or directory}
---- Result should have been:
0 {{circ1:1.0 {tclPkgSetup {circ1.tcl source {::circ1::c1-1 ::circ1::c1-2 ::circ1:: c1-3 ::circ1::c1-4}}}} {circ2:1.0 {tclPkgSetup {circ2.tcl source {::circ2::c2-1 ::c irc2::c2-2}}}} {circ3:1.0 {tclPkgSetup {circ3.tcl source ::circ3::c3-1}}}}
---- pkgMkIndex-9.1 FAILED

==== pkgMkIndex-10.1 package in DLL and script
==== Contents of test case:

       pkgtest::runIndex pkg pkga[info sharedlibextension] pkga.tcl

==== Result was:
1 {error deleting "pkg/pkgIndex.tcl": not a directory}
---- Result should have been:
0 {{Pkga:1.0 {tclPkgSetup {pkga.so load {pkga_eq pkga_quote}} {pkga.tcl source pkga _neq}}}}
---- pkgMkIndex-10.1 FAILED

==== pkgMkIndex-10.2 package in DLL hidden by -load
==== Contents of test case:

 pkgtest::runIndex -load Pkg* -- pkg pkga[info sharedlibextension]

==== Result was:
1 {error deleting "pkg/pkgIndex.tcl": not a directory}
---- Result should have been:
0 {}
---- pkgMkIndex-10.2 FAILED
proc-old.test
proc.test
pwd.test
regexp.test
registry.test
rename.test
resource.test
safe.test
scan.test
set-old.test
set.test
socket.test
source.test
split.test
stack.test
string.test
stringObj.test
subst.test
switch.test
timer.test
trace.test
unixFCmd.test

==== 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

==== Result was:
0
---- Result should have been:
1
---- unixFCmd-1.7 FAILED
unixFile.test
unixNotfy.test
unknown.test
uplevel.test
upvar.test
util.test
var.test
while-old.test
while.test
winFCmd.test
winNotify.test
winPipe.test

DesiredBehavior:
Successful execution of all tests :-)



In fCmd-6.30, the actual error from the rename operation is
{error renaming "foo/bar" to "/tmp/bar": permission denied},
while the test expects the value
{can't unlink "foo/bar": permission denied}.

--
These tests are all corrected for 8.0.5. 
-- 08/15/1999 hobbs
welch Deleted ticket [218606ffff]. [History diff]2000-10-26 08:25:10
dgp Ticket [218606ffff]: 4 changes [History diff]2001-04-05 08:22:17
Log in (anonymous is fine) to add a comment.