Boost logo

Boost Testing :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-05-02 11:25:46


Hartmut Kaiser wrote:

> I'm out of ideas here. The assertion fires if the concatenated string of
> "__DATE__ __TIME__" doesn't have the expected format: 'Dec 29 2001 11:23:59'
> (w/o the quotes, in between all spaces). Does the CW9.3 generate another
> format for this?

According to the CW docs that's not the format it generates...

[from CW-8.3 Manuals]

ANSI Predefined Symbols

__DATE__ The date the file is compiled; for example, "Jul 14, 1995".
This symbol is a predefined macro.

__TIME__ The time the file is compiled in 24-hour format; for example,
"13:01:45". This symbol is a predefined macro.

[...]

Note the comma after the month day. But the funny thing is that the
example right below the above docs say this:

[from CW-8.3 Manuals]
/* The program prints something like the following:
Hello World!
Oct 31 1995, 18:23:50
main.ANSI.c, line: 10
*/
[...]

I'm checking to see what it actually does.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - Grafik/jabber.org

Boost-testing list run by mbergal at meta-comm.com