Simple framework for regression tests in src/tools/regression

John Baldwin jhb at freebsd.org
Fri Jan 18 06:45:50 PST 2008


On Thursday 17 January 2008 08:33:31 pm Alfred Perlstein wrote:
> * John Baldwin <jhb at freebsd.org> [080117 14:28] wrote:
> > Anyways, comments, etc.?
> 
> There is C++ in the base system.

But none of our regression tools are written in it.  I also must confess that
std::pair<> is still a bit ugly though I could provide wrapper macros.

> You can return a pair by returning a structure which is supported in
> C.

But the second part of the pair really needs to be an object.  Error messages
are printf style with var args, etc.  I suppose I could do the whole asprintf()
thing and end up with a 'return fail_err(...)' and have the status methods
return a struct.

-- 
John Baldwin


More information about the freebsd-arch mailing list