Liviu Nicoara wrote:
I attached a tar.gz archive containing the test mentioned in the subject
line (modified to use the new driver). The test comes from former
c_strings.cpp test.

Thanks for the work on porting the test! Unfortunately, I'm afraid
the original test was very brittle and would tend to break on many
platforms due to slight deviations from the standard requirements.

To minimize the extent of the breakage it will be best to split the
test into several smaller programs, each exercising a single header.
In addition, instead of using the approach of taking the address of
the functions that are supposed to be declared in the header it would
be better to use templates to detect their absence (or non-conforming
signatures) without causing compilation errors.

I extracted the tests for the headers <cctype> and <cwctype> into
programs of their own and implemented the template solution mentioned
above here:

http://svn.apache.org/viewcvs.cgi/incubator/stdcxx/trunk/tests/strings/21.cctype.cpp?view=log
http://svn.apache.org/viewcvs.cgi/incubator/stdcxx/trunk/tests/strings/21.cwctype.cpp?view=log

It would be good to do the same for the rest of the headers that
the c_strings.cpp test exercises.

Thanks
Martin

Reply via email to