Skip to content
Tcl Source Code View Ticket
Login

View Ticket

HPUX: clock-10.0, clock-41.1 fail

Closed / Wont Fix1115761fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2005-02-03 21:34:23
Hi,
I have the following tests failure on tcl 4.8.9 on a
HPUX platform (11.23).

all.tcl:        Total   10740   Passed  9554    Skipped
1182    Failed  4
Sourced 129 Test Files.
Files with failing tests: clock.test expr.test get.test

For other purpose I need the tcl set routine to work
correctly . I would help if the get.test would work.

Thanks
B
dgpplain2005-02-04 07:05:37
Logged In: YES 
user_id=80530

without telling us which tests
failed, and how they failed,
we can't do anything 
with this report.
baikelaiplain2005-02-05 01:01:53
Logged In: YES 
user_id=1211622

Here are the failing tests:

==== get-1.10 Tcl_GetInt procedure FAILED
==== Contents of test case:

        set x 0
        list [catch {incr x -18446744073709551614} msg] $msg
    
---- Result was:
1 {integer value too large to represent}
---- Result should have been (exact matching):
0 2
==== get-1.10 FAILED
==== expr-22.9 non-numeric floats: shared object equality
and NaN FAILED
==== Contents of test case:

    set x NaN
    expr {$x == $x}

---- Result was:
1
---- Result should have been (exact matching):
0
==== expr-22.9 FAILED

==== clock-10.0 Can strftime do %G? FAILED
==== Contents of test case:

    clock format 0 -format %G -gmt true

---- Result was:
G
---- Result should have been (exact matching):
1970
==== clock-10.0 FAILED


==== clock-41.1 regression test - format group %k when hour
is 0 FAILED
==== Contents of test case:

    clock format 0 -format %k -gmt true

---- Result was:
k
---- Result should have been (exact matching):
 0
==== clock-41.1 FAILED


I am using gcc3.3.2
tahnks
B
dgpplain2005-02-05 01:36:06
Logged In: YES 
user_id=80530

See Bugs 748952, 1069261, 1107341.

Forwarding the clock test failures
to the [clock maintainer].
baikelaiplain2005-02-05 01:39:53
Logged In: YES 
user_id=1211622

Here are the failing tests:

==== get-1.10 Tcl_GetInt procedure FAILED
==== Contents of test case:

        set x 0
        list [catch {incr x -18446744073709551614} msg] $msg
    
---- Result was:
1 {integer value too large to represent}
---- Result should have been (exact matching):
0 2
==== get-1.10 FAILED
==== expr-22.9 non-numeric floats: shared object equality
and NaN FAILED
==== Contents of test case:

    set x NaN
    expr {$x == $x}

---- Result was:
1
---- Result should have been (exact matching):
0
==== expr-22.9 FAILED

==== clock-10.0 Can strftime do %G? FAILED
==== Contents of test case:

    clock format 0 -format %G -gmt true

---- Result was:
G
---- Result should have been (exact matching):
1970
==== clock-10.0 FAILED


==== clock-41.1 regression test - format group %k when hour
is 0 FAILED
==== Contents of test case:

    clock format 0 -format %k -gmt true

---- Result was:
k
---- Result should have been (exact matching):
 0
==== clock-41.1 FAILED


I am using gcc3.3.2
tahnks
B
dgp Open ticket [1115761fff]. [History diff]2005-02-05 01:43:21
dgpplain2005-02-05 01:43:22
Logged In: YES 
user_id=80530

hit by some SF glitch.

trying again.
kennykbplain2005-02-05 04:14:23
Logged In: YES 
user_id=99768

clock-10.0 and clock-41.1 are both checking for the
presence of features in the strftime() library call
that are supplied by glibc and the Olson timezone
library but not mandated by the Single Unix Specification.
These tests will pass on Solaris, Linux, or Windows,
but fail on HP-UX because it lacks those features.

The problem is fixed in 8.5 by the expedient of avoiding
the native strftime() in favour of a [clock format]
implemented mostly in Tcl. (This also gives the advantage
that l10n can be done with Tcl's message catalogs.)
Alas, the changes are large and not entirely compatible,
so they will not be backported into the 8.4 series.

Don, what's left here? Any further forwarding needed for
this report?
dgp Ticket [1115761fff]: 1 change [History diff]2005-02-05 04:59:37
dgpplain2005-02-05 04:59:38
Logged In: YES 
user_id=80530


You can consider whether it's
suitable to add any test constraints
on the 8-4-branch to avoid additional
reports of this.

Other than that, this report is closed.
Everything else was a duplicate of
some existing bug report.
kennykbplain2005-03-15 23:38:47
Logged In: YES 
user_id=99768

Hm, I think the right thing is to fail these two cases -
they are indeed cases where Tcl doesn't behave as
documented - but silence all the other tests that
depend on these format groups.  Which is indeed
what the test suite does.  In any case, the whole
mess is fixed in 8.5.
Log in (anonymous is fine) to add a comment.