Test suites
Benjamin Kosnik
bkoz@cygnus.com
Mon Jun 5 10:02:00 GMT 2000
> A large number of the test programs utilise implementation details
> of, e.g. filebuf. Is this just to make testing easier, or is it to
> exercise specific features of the implementation, or a mixture? For
> the former, would it be possible to use more generic methods, so that
> the test suite can be used to compare the functionality of
> libstdc++-v3 against the native C++ library for the platform, or any
> other supposedly standard-compliant library?
Can you give specific examples? I'm unclear on the details.
In general, yes, it would be nice to abstract out as much detail as
possible, and to have tests that are as portable as possible.
However, as you've noticed, for filebufs in particular, details differ
per host. (see the _M_buf_size_pref, to be precise.) Some effort has been
expended to make sure the filebuf tests work on both solaris, linux, and
cross compilers...
I would be interested in suggestions to make things more portable.
-benjamin
More information about the Libstdc++
mailing list