Date: Fri, 18 Jan 2008 09:22:05 -0500 From: John Baldwin <jhb@freebsd.org> To: Alfred Perlstein <alfred@freebsd.org> Cc: arch@freebsd.org Subject: Re: Simple framework for regression tests in src/tools/regression Message-ID: <200801180922.05736.jhb@freebsd.org> In-Reply-To: <20080118013331.GP99258@elvis.mu.org> References: <200801171731.09873.jhb@freebsd.org> <20080118013331.GP99258@elvis.mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801180922.05736.jhb>