You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2006/02/07 21:50:58 UTC

[jira] Commented: (STDCXX-134) test output misaligned for large number of assertions

    [ http://issues.apache.org/jira/browse/STDCXX-134?page=comments#action_12365482 ] 

Martin Sebor commented on STDCXX-134:
-------------------------------------

This is even better: the percentage column ends up being negative with very large numbers:

# +-----------------------+--------+--------+--------+
# | DIAGNOSTIC            | ACTIVE |  TOTAL |INACTIVE|
# +-----------------------+--------+--------+--------+
# | (S1) INFO             |     89 |     89 |     0% |
# | (S7) ASSERTION        |      0 | 77810808 |   -10% |
# +-----------------------+--------+--------+--------+

> test output misaligned for large number of assertions
> -----------------------------------------------------
>
>          Key: STDCXX-134
>          URL: http://issues.apache.org/jira/browse/STDCXX-134
>      Project: C++ Standard Library
>         Type: Bug
>   Components: Tests
>     Versions: 4.1.3
>  Environment: $ uname -a
> Linux skynet 2.6.14.5 #3 SMP PREEMPT Mon Jan 9 13:59:21 MST 2006 i686 unknown unknown GNU/Linux
> $ gcc -v
> Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/specs
> Configured with: ../gcc-3.3.4/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
> Thread model: posix
> gcc version 3.3.4
>     Reporter: Liviu Nicoara
>     Priority: Minor

>
> (Need monospace font to see properly)
> The following test case:
> $ cat > t.cpp << EOF
> #include <driver.h>
> int run_test (int, char**)
> {
>     for (int i = 0; i < 1000000; ++i)
>         rw_assert (1, 0, 0, " ");
>     return 0;
> }
> int main ()
> {
>     return rw_test (0, 0, __FILE__, "", 0, run_test, 0);
> }
> EOF
> yields the following output:
> $ ./t
> # INFO (S1) (8 lines):
> # TEXT:
> # COMPILER: gcc 3.3.4, __VERSION__ = "3.3.4"
> # ENVIRONMENT: i386 running linux-elf 2.4.29 with glibc 2.3
> # FILE: t.cpp
> # COMPILED: Feb  6 2006, 13:45:04
> # COMMENT:
> ######################################################
> # +-----------------------+--------+--------+--------+
> # | DIAGNOSTIC            | ACTIVE |  TOTAL |INACTIVE|
> # +-----------------------+--------+--------+--------+
> # | (S1) INFO             |      1 |      1 |     0% |
> # | (S7) ASSERTION        |      0 | 1000000 |   100% |
> # +-----------------------+--------+--------+--------+
> Please note the misalignment in the last row of he table.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira