Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-05-19
16:50 • Closed ticket [748941ffff]: cmdMZ.test failed plus 3 other changes artifact: ff7537f602 user: dkf
16:12 • Ticket [748941ffff]: 4 changes artifact: 79cd09c049 user: mmokrejs
2003-12-03
21:14 • Ticket [748941ffff]: 4 changes artifact: f11e95645c user: mmokrejs
2003-09-05
02:15 • Ticket [748941ffff]: 4 changes artifact: c9ff325b7f user: dgp
2003-06-06
18:06 • Ticket [748941ffff]: 4 changes artifact: d3869db658 user: mmokrejs
18:05 • Ticket [748941ffff]: 4 changes artifact: 0a7bc9b810 user: mmokrejs
15:26 • Ticket [748941ffff]: 4 changes artifact: a9f6270465 user: dkf
2003-06-05
18:40 • Ticket [748941ffff]: 4 changes artifact: abc150c1a2 user: mmokrejs
18:37 • Ticket [748941ffff]: 4 changes artifact: 00acaa34b0 user: mmokrejs
17:21 • Ticket [748941ffff]: 5 changes artifact: 4c4fd5b898 user: vincentdarley
05:53 • Ticket [748941ffff]: 1 change artifact: c6c4d74d06 user: dkf
2003-06-04
23:00 • Ticket [748941ffff]: 2 changes artifact: f944ed9e27 user: dgp
15:51 • New ticket [748941ffff]. artifact: 2890e2c276 user: mmokrejs

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.