Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jan 2008 09:27:24 -0800
From:      Alfred Perlstein <alfred@freebsd.org>
To:        John Baldwin <jhb@freebsd.org>
Cc:        arch@freebsd.org
Subject:   Re: Simple framework for regression tests in src/tools/regression
Message-ID:  <20080118172724.GS99258@elvis.mu.org>
In-Reply-To: <200801180922.05736.jhb@freebsd.org>
References:  <200801171731.09873.jhb@freebsd.org> <20080118013331.GP99258@elvis.mu.org> <200801180922.05736.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* John Baldwin <jhb@freebsd.org> [080118 06:42] wrote:
> On Thursday 17 January 2008 08:33:31 pm Alfred Perlstein wrote:
> > * John Baldwin <jhb@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080118172724.GS99258>