You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by Liviu Nicoara <ni...@roguewave.com> on 2006/02/06 22:05:22 UTC

formatting error

The following test case:

$ cat > t.cpp << EOF

#include <driver.h>

int run_test (int, char**)
{
    rw_assert (0, 0, 0, "");
    return 0;
}

int main ()
{
    return rw_test (0, 0, __FILE__, "", 0, run_test, 0);
}

EOF

yields:

$ ./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:
######################################################

# ASSERTION (S7) (2 lines):
# TEXT: *** formatting error ***

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


Is the "formatting error" message correct and/or intended? I would
expect the empty formatting string to be accepted.

Liviu


Re: formatting error

Posted by Martin Sebor <se...@roguewave.com>.
Liviu Nicoara wrote:
> The following test case:
> 
> $ cat > t.cpp << EOF
> 
> #include <driver.h>
> 
> int run_test (int, char**)
> {
>     rw_assert (0, 0, 0, "");
>     return 0;
> }
> 
> int main ()
> {
>     return rw_test (0, 0, __FILE__, "", 0, run_test, 0);
> }
> 
> EOF
> 
> yields:
> 
> $ ./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:
> ######################################################
> 
> # ASSERTION (S7) (2 lines):
> # TEXT: *** formatting error ***
> 
> # +-----------------------+--------+--------+--------+
> # | DIAGNOSTIC            | ACTIVE |  TOTAL |INACTIVE|
> # +-----------------------+--------+--------+--------+
> # | (S1) INFO             |      1 |      1 |     0% |
> # | (S7) ASSERTION        |      1 |      1 |     0% |
> # +-----------------------+--------+--------+--------+
> 
> 
> Is the "formatting error" message correct and/or intended? I would
> expect the empty formatting string to be accepted.

It's a bug that I've known about but haven't yet found the time
to fix. Unless you're itching to do it yourself it would be good
to have an issue for it as a reminder. If you could open one it'd
be great! :)

Martin