Simple framework for regression tests in src/tools/regression

Alfred Perlstein alfred at freebsd.org
Fri Jan 18 09:30:55 PST 2008


* John Baldwin <jhb at freebsd.org> [080118 06:42] wrote:
> 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.  

It's not that big of a deal.  go with what works.

-alfred


More information about the freebsd-arch mailing list