From owner-freebsd-arch@FreeBSD.ORG Fri Jan 18 14:45:50 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 AB82016A469 for ; Fri, 18 Jan 2008 14:45:50 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 5A74D13C467 for ; Fri, 18 Jan 2008 14:45:50 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by elvis.mu.org (Postfix) with ESMTP id 053991A4D89; Fri, 18 Jan 2008 06:26:29 -0800 (PST) From: John Baldwin To: Alfred Perlstein Date: Fri, 18 Jan 2008 09:22:05 -0500 User-Agent: KMail/1.9.7 References: <200801171731.09873.jhb@freebsd.org> <20080118013331.GP99258@elvis.mu.org> In-Reply-To: <20080118013331.GP99258@elvis.mu.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801180922.05736.jhb@freebsd.org> 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 14:45:50 -0000 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. -- John Baldwin