Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2000-10-26
08:22 • Closed ticket [218433ffff]: 5 tests from TCL distribution fail plus 4 other ... artifact: 631a801b5e user: welch
00:57 • New ticket [218433ffff]. artifact: 5ec089caff user: nobody

5 tests from TCL distribution fail

Closed / Fixed218433ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:57:32
OriginalBugID: 6043 Bug
Version: 8.3.1
SubmitDate: '2000-07-24'
LastModified: '2000-08-14'
Severity: SER
Status: Closed
Submitter: techsupp
ChangedBy: ericm
OS: Solaris
OSVersion: Solaris 7 Server
Machine: SUN Enterprise 250
FixedDate: '2000-10-25'
ClosedDate: '2000-08-14'


Name:
Larry Griffith

Extensions:
None

CustomShell:
None

Comments:
Used SUN Workshop C compiler (from WS 5.0).  gcc gives slightly worse
    results.

ReproducibleScript:
Unpack tgz file.
In build directory:
./configure --enable-threads --prefix=/usr/export/local
gmake
gmake tests

ObservedBehavior:
Five tests fail:
cmdAH-18.2 Tcl_FileObjCmd: executable
cmdMZ-1.4 Tcl_PwdObjCmd: failure
tcl_test-8.3 tcltest.a.tcl -tmpdir notReadableDir   (also 8.7 as well)
tcl_test-8.3 tcltest.a.tcl -tmpdir notWritableDir

DesiredBehavior:
I expect Tcl to pass the tests

Patch:
No known patch

PatchFiles:
N/A

-----------------------------------------------------
Tests began at Mon Jul 24 10:42:37 EDT 2000
append.test
assocd.test
async.test
autoMkindex.test
basic.test
binary.test
case.test
clock.test
cmdAH.test

==== cmdAH-18.2 Tcl_FileObjCmd: executable FAILED
==== Contents of test case:


    file executable gorp.file

---- Result was:
1
---- Result should have been:
0
==== cmdAH-18.2 FAILED

cmdIL.test
cmdInfo.test
cmdMZ.test

==== cmdMZ-1.4 Tcl_PwdObjCmd: failure FAILED
==== Contents of test case:

    file delete -force foo
    file mkdir foo
    set cwd [pwd]
    cd foo
    file attr . -permissions 000
    set result [list [catch {pwd} msg] $msg]
    cd $cwd
    file delete -force foo
    set result

---- Result was:
0 /export/home/larry/projects/tcl8.3.1/unix/foo
---- Result should have been:
1 {error getting working directory name: permission denied}
==== cmdMZ-1.4 FAILED

compExpr-old.test
compExpr.test
compile.test
concat.test
dcall.test
dstring.test
.
.
.
switch.test
tcltest.test

==== tcltest-8.3 tcltest a.tcl -tmpdir notReadableDir FAILED
==== Contents of test case:

    catch {exec $::tcltest::tcltest a.tcl -tmpdir $notReadableDir} msg 
    # The join is necessary because the message can be split on multiple lines
    list [regexp {not readable} [join $msg]]

---- Result was:
0
---- Result should have been:
1
==== tcltest-8.3 FAILED


==== tcltest-8.4 tcltest a.tcl -tmpdir notWriteableDir FAILED
==== Contents of test case:

    catch {exec $::tcltest::tcltest a.tcl -tmpdir $notWriteableDir} msg
    # The join is necessary because the message can be split on multiple lines
    list [regexp {not writeable} [join $msg]]

---- Result was:
0
---- Result should have been:
1
==== tcltest-8.4 FAILED


==== tcltest-8.7 tcltest a.tcl -testdir notReadableDir FAILED
==== Contents of test case:

    catch {exec $::tcltest::tcltest a.tcl -testdir $notReadableDir} msg 
    # The join is necessary because the message can be split on multiple lines
    list [regexp {not readable} [join $msg]]

---- Result was:
0
---- Result should have been:
1
==== tcltest-8.7 FAILED

thread.test
timer.test
trace.test
.
.
.
Tests ended at Mon Jul 24 10:44:26 EDT 2000
all.tcl:        Total   8959    Passed  7946    Skipped 1008    Failed  5
Sourced 120 Test Files.
Files with failing tests: cmdAH.test cmdMZ.test tcltest.test



It looks like you may have run these tests as root.  That often confuses the tests that are dependant on filesystem permissions in some regard, because root has absolute permissions everywhere on the filesystem.  If this is the case, please try running the tests again from a normal user account and repsond if the failures remain.  Thanks,

   Eric Melski                            The Other Tcl Guy
   ericm at ajubasolutions.com            Ajuba Solutions

-- 08/14/2000 ericm
welch Closed ticket [218433ffff]. [History diff]2000-10-26 08:22:15
Log in (anonymous is fine) to add a comment.