From owner-freebsd-arch@FreeBSD.ORG Fri Jan 18 17:30:55 2008 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F06816A419; Fri, 18 Jan 2008 17:30:55 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 6696213C4E1; Fri, 18 Jan 2008 17:30:55 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 7F9451A4D7E; Fri, 18 Jan 2008 09:27:24 -0800 (PST) Date: Fri, 18 Jan 2008 09:27:24 -0800 From: Alfred Perlstein To: John Baldwin Message-ID: <20080118172724.GS99258@elvis.mu.org> References: <200801171731.09873.jhb@freebsd.org> <20080118013331.GP99258@elvis.mu.org> <200801180922.05736.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200801180922.05736.jhb@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: arch@freebsd.org Subject: Re: Simple framework for regression tests in src/tools/regression X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 17:30:55 -0000 * John Baldwin [080118 06:42] wrote: > On Thursday 17 January 2008 08:33:31 pm Alfred Perlstein wrote: > > * John Baldwin [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