Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 84753 invoked from network); 12 Aug 2007 23:01:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Aug 2007 23:01:47 -0000 Received: (qmail 25538 invoked by uid 500); 12 Aug 2007 23:01:45 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 25524 invoked by uid 500); 12 Aug 2007 23:01:45 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 25513 invoked by uid 99); 12 Aug 2007 23:01:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Aug 2007 16:01:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of msebor@gmail.com designates 209.85.198.186 as permitted sender) Received: from [209.85.198.186] (HELO rv-out-0910.google.com) (209.85.198.186) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Aug 2007 23:01:42 +0000 Received: by rv-out-0910.google.com with SMTP id k20so1156223rvb for ; Sun, 12 Aug 2007 16:01:22 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:organization:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=tHZa1mLbN0JsOi0P6r13ETriZ4DO5D7R6Hhwiqr1ll+7X2TCibUCDV4yLYlSlP8gjj+DJ5cu8M26pSS7vQETswrTY+UQy0Fc3a1Vh8TaiBLR52SCN9Ym3XKH7/rHex5//wBGzNecBASHtaVSNwFP5Zc5bFk8H4Re7lZ2EIVI0b8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:organization:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=m9V5kS5qLnB6mZjebrW9PlSWvck2A1XSb7RwCArlt/ktdrFepqcqv28++ORtgQw3Knba6AbKCwmJSCQHNzc2QQsYYeZL0txxiRDwy+LpA4EkaRnGNAUp5hAOo0ITHoA4x7UJuelKMGi+FeAcp89MDl/FjP1JAMEAc7OrboFBAyY= Received: by 10.141.161.6 with SMTP id n6mr2326395rvo.1186959682381; Sun, 12 Aug 2007 16:01:22 -0700 (PDT) Received: from ?192.168.1.104? ( [71.229.200.170]) by mx.google.com with ESMTPS id k2sm10961823rvb.2007.08.12.16.01.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 12 Aug 2007 16:01:20 -0700 (PDT) Message-ID: <46BF913F.8000403@roguewave.com> Date: Sun, 12 Aug 2007 17:01:19 -0600 From: Martin Sebor Organization: Rogue Wave Software User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.12) Gecko/20070719 Fedora/1.0.9-2.fc6 pango-text SeaMonkey/1.0.9 MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: [PATCH] Update test 22.locale.time.put.mt.cpp to validate results [take 2] References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: Martin Sebor X-Virus-Checked: Checked by ClamAV on apache.org Travis Vitek wrote: > Attached is a patch to enhance the time_put facet mt test. Threads > verify that the values they put compare equal to those put in the > primary thread. Now that I've committed the patch... I have a question about the bit below that I noticed too late: [...] > @@ -160,19 +214,117 @@ > static int > run_test (int, char**) [...] > + const char* const possible_locale_options[] = { > + locale_list, "C\0", 0 > + }; Is the purpose of this code to exercise the "C" locale in addition to all the named locales returned from rw_locales()? If so, it's a valuable enhancement to the test since the base facet (i.e., time_put as opposed to time_put_byname) wasn't necessarily being exercised by the test before this change. Good catch! That said, I'm not quite happy with how this solution is "grafted" on to the current general mechanism we use to obtain the list of locales to test. First, the list of locales the test says (in the call to rw_info()) it exercises doesn't include this locale. Second, there's no way to disable it using the --locales option. Finally, it's a chunk of code that will likely end up being repeated in all the locale tests and so it's a perfect candidate for an enhancement to the test driver. What do you think about this: let's change rw_locales() to always return a list of names that starts with "C". That way callers that don't want to exercise the "C" locale can simply skip past it while others will be guaranteed to exercise the classic locale. Martin