Skip to content
Tcl Source Code View Ticket
Login

View Ticket

cmdMZ.test failed

Closed / Fixed748941ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 23 years ago
Descriptionplain2003-06-04 15:51:43
Hi,
I have compiled tcl8.4.3 on Tru64Unix (formerly OSF1)
and make test fails in many cases. Would someone
inspect the output? Thanks!

I used cc/cxx from vendor, latest version, C*FLAGS"-O2
-arch ev56" if that matters.


The original bugreport is at
https://sourceforge.net/tracker/?func=detail&atid=110894&aid=748804&group_id=10894

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

    # We don't want this test to run on Linux because
they do a
    # permissions caching trick which causes this to
fail.  The
    # caching is incorrect, but we have no control over
that.
    set foodir [file join [temporaryDirectory] foo]
    file delete -force $foodir
    file mkdir $foodir
    set cwd [pwd]
    cd $foodir
    file attr . -permissions 000
    set result [list [catch {pwd} msg] $msg]
    cd $cwd
    file delete -force $foodir
    set result

---- Result was:
0 /mnt/tcl8.4.3/unix/foo
---- Result should have been (exact matching):
1 {error getting working directory name: permission denied}
==== cmdMZ-1.4 FAILED
dgp Ticket [748941ffff]: 2 changes [History diff]2003-06-04 23:00:50
dkf Ticket [748941ffff]: 1 change [History diff]2003-06-05 05:53:08
vincentdarleyplain2003-06-05 17:21:34
Logged In: YES 
user_id=32170

This is another one which is filesystem/os specific, and really 
needs a correct constraint adding.

However, since I know nothing about the different unices 
(and don't particularly care to ;-) I don't know how to fix it.
mmokrejsplain2003-06-05 18:37:51
Logged In: YES 
user_id=696559

Send me how to repeat that from tcslsh. I'll repost the results.
mmokrejsplain2003-06-05 18:40:05
Logged In: YES 
user_id=696559

Could this be related to
https://sourceforge.net/tracker/index.php?func=detail&aid=731062&group_id=10894&atid=110894

?
dkfplain2003-06-06 15:26:41
Logged In: YES 
user_id=79902

To rerun a single test file, do this:
  make test TESTFLAGS="-file cmdMZ.test"
The problem is that the behaviour of this particular test
depends on the OS *and* on the filesystem.  With the classic
UNIX FS semantics, you can only determine the current
directory if you have read and search access to all the
containing directories up to the root.  A number of more
modern UNIXes instead maintain the CWD path directly (i.e.
in addition to the inode) which means that such permissions
are no longer needed.  What we need is a suitable test
constraint to tell which kind of behaviour to test for, but
which does not depend on the command being tested, which is
not so easy to do.
mmokrejsplain2003-06-06 18:05:15
Logged In: YES 
user_id=696559

OK, I'm getting the same on another local filesystem again.
I execute from bash. I meant with my question how can I
paste the testcode line by line. Actually, I cannot just
patse it seem, I have to set some variables ...

Can I do it from tclsh or from tcltest? How. I need cut and
paste script. Maybe I could tell you then which command
failed. Thanks.
mmokrejsplain2003-06-06 18:06:15
Logged In: YES 
user_id=696559

OK, I'm getting the same on another local filesystem again.
I execute from bash. I meant with my question how can I
paste the testcode line by line. Actually, I cannot just
patse it seem, I have to set some variables ...

Can I do it from tclsh or from tcltest? How. I need cut and
paste script. Maybe I could tell you then which command
failed. Thanks.
dgpplain2003-09-05 02:15:09
Logged In: YES 
user_id=80530


Another data point.  On Solaris 9,
the test cmdMZ-1.4 passes in 
Tcl 8.3.5.  It fails in core-8-4-branch
and HEAD.  Perhaps this points
to a problem in the VFS?
mmokrejsplain2003-12-03 21:14:30
Logged In: YES 
user_id=696559

Possibly fixed in tcl8.4.5 on Tru64UNix 5.1A(same host used
to report thsi bug originally).

$ ./tcltest ../tests/cmdMZ.test -verbose e
cmdMZ.test:     Total   34      Passed  31      Skipped 3  
    Failed  0
Number of tests skipped for each constraint:
        2       macOnly
        1       nonPortable
$
mmokrejsplain2004-05-19 16:12:27
Logged In: YES 
user_id=696559

Fixed in current cvs on OSF1/Tru64Unix 5.1A.
dkf Closed ticket [748941ffff]. [History diff]2004-05-19 16:50:47
Log in (anonymous is fine) to add a comment.