Skip to content
Tcl Source Code View Ticket
Login

View Ticket

On Solaris 9 exec.test fails five tests

Closed / Works For Me1018663fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-08-29 18:27:48
Tcl 8.4.7 compiles and tests just fine on an Untra 1 or 2
running Solaris 8.  Hovever, it fails five tests when I
compile
it on my SunFire V250 Solaris 9 machine:

% uname -a
SunOS belvedere 5.9 Generic_117171-05 sun4u sparc
SUNW,Sun-Fire-V250

The same tests fail regardless of the compiler or
compiler flags used.  I have configured using:

    * gcc -pipe
    * cc
    * cc cc -xstrconst  -xildoff
    * cc -xarch=v8 -xstrconst -xildoff

Here is the relevant output from "make test"

[...]
exec.test

==== exec-9.1 commands returning errors FAILED
==== Contents of test case:

    set x [catch {exec gorp456} msg]
    list $x [string tolower $msg] [string tolower
$errorCode]

---- Result was:
1 {couldn't execute "gorp456": permission denied}
{posix eacces {permission deni---->ed}}
---- Result should have been (exact matching):
1 {couldn't execute "gorp456": no such file or
directory} {posix enoent {no such----> file or directory}}
==== exec-9.1 FAILED


==== exec-9.2 commands returning errors FAILED
==== Contents of test case:

    string tolower [list [catch {exec [interpreter]
echo foo | foo123} msg] $msg----> $errorCode]

---- Result was:
1 {couldn't execute "foo123": permission denied} {posix
eacces {permission denie---->d}}
---- Result should have been (exact matching):
1 {couldn't execute "foo123": no such file or
directory} {posix enoent {no such ---->file or directory}}
==== exec-9.2 FAILED


==== exec-9.5 commands returning errors FAILED
==== Contents of test case:

    list [catch {exec gorp456 | [interpreter] echo a b
c} msg] [string tolower $---->msg]

---- Result was:
1 {couldn't execute "gorp456": permission denied}
---- Result should have been (exact matching):
1 {couldn't execute "gorp456": no such file or directory}
==== exec-9.5 FAILED


==== exec-13.3 setting errorCode variable FAILED
==== Contents of test case:

    set x [catch {exec _weird_cmd_} msg]
    list $x [string tolower $msg] [lindex $errorCode 0]
 [string tolower [lrange----> $errorCode 2 end]]

---- Result was:
1 {couldn't execute "_weird_cmd_": permission denied}
POSIX {{permission denied}---->}
---- Result should have been (exact matching):
1 {couldn't execute "_weird_cmd_": no such file or
directory} POSIX {{no such fi---->le or directory}}
==== exec-13.3 FAILED


==== exec-14.4 -- switch FAILED
==== Contents of test case:

    list [catch {exec -- -gorp} msg] [string tolower $msg]

---- Result was:
1 {couldn't execute "-gorp": permission denied}
---- Result should have been (exact matching):
1 {couldn't execute "-gorp": no such file or directory}
==== exec-14.4 FAILED

[...]

Tests ended at Sat Aug 28 13:07:50 PDT 2004
all.tcl:        Total   10678   Passed  9794    Skipped
879     Failed  5

[...]
dgp Ticket [1018663fff]: 1 change [History diff]2004-08-31 00:30:48
dgpplain2004-08-31 00:30:49
Logged In: YES 
user_id=80530


At first glance this looks like
a change in posix error code,
and/or error message.

After looking more carefully,
we can adjust the tests to 
be more flexible, but I don't think
these test failure indicate anything
deeply wrong with Tcl.

Passing on to the [exec] maintainer
for more study.
hobbsplain2005-05-31 09:39:21
Logged In: YES 
user_id=72656

I have no problem with the 8.4 head in exec.test using cc on
Solaris 9.
Log in (anonymous is fine) to add a comment.