[
https://issues.apache.org/jira/browse/STDCXX-376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Sebor closed STDCXX-376.
-------------------------------
Resolution: Fixed
Fix Version/s: 4.2
Wixed by the referenced changes.
> test driver reports incorrect pass rathe due to arithmetic overflow
> -------------------------------------------------------------------
>
> Key: STDCXX-376
> URL: https://issues.apache.org/jira/browse/STDCXX-376
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Test Driver
> Affects Versions: 4.1.3
> Environment: all
> Reporter: Martin Sebor
> Assigned To: Martin Sebor
> Priority: Critical
> Fix For: 4.2
>
>
> The INACTIVE (pass rate) column displays the wrong result when the total
> number of assertions is large:
> $ cat t.cpp && make t && ./t
> #include <driver.h>
> int test (int, char**) {
> for (int i = 0; i != 77810809; ++i)
> rw_assert (1, 0, 0, "");
> return 0;
> }
>
> int main () {
> rw_test (0, 0, 0, 0, 0, test, 0, 0);
> }
> gcc -c -I/build/sebor/stdcxx/include/ansi -D_RWSTDDEBUG
> -D_RWSTD_USE_CONFIG -I/build/sebor/stdcxx/include
> -I/build/sebor/stdcxx-gcc-4.1.0-11s/include
> -I/build/sebor/stdcxx/../rwtest/include -I/build/sebor/stdcxx/tests/include
> -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow
> -Wwrite-strings -Wno-long-long t.cpp
> gcc t.o -o t -L/build/sebor/stdcxx-gcc-4.1.0-11s/rwtest -lrwtest11s
> -L/build/sebor/stdcxx-gcc-4.1.0-11s/lib -lstd11s -lsupc++ -lm
> # INFO (S1) (8 lines):
> # TEXT:
> # COMPILER: gcc 4.1.0, __VERSION__ = "4.1.0"
> # ENVIRONMENT: sparc-v8 running sunos
> # FILE: (null)
> # COMPILED: Mar 27 2007, 12:33:59
> # COMMENT:
> ######################################################
> # +-----------------------+--------+--------+--------+
> # | DIAGNOSTIC | ACTIVE | TOTAL |INACTIVE|
> # +-----------------------+--------+--------+--------+
> # | (S1) INFO | 1 | 1 | 0% |
> # | (S7) ASSERTION | 0 | 77810809 | -10% |
> # +-----------------------+--------+--------+--------+
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.