From commits-return-2812-apmail-stdcxx-commits-archive=stdcxx.apache.org@stdcxx.apache.org Wed Apr 23 23:08:56 2008 Return-Path: Delivered-To: apmail-stdcxx-commits-archive@www.apache.org Received: (qmail 55239 invoked from network); 23 Apr 2008 23:08:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Apr 2008 23:08:56 -0000 Received: (qmail 79135 invoked by uid 500); 23 Apr 2008 23:08:57 -0000 Delivered-To: apmail-stdcxx-commits-archive@stdcxx.apache.org Received: (qmail 79117 invoked by uid 500); 23 Apr 2008 23:08:57 -0000 Mailing-List: contact commits-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list commits@stdcxx.apache.org Received: (qmail 79104 invoked by uid 99); 23 Apr 2008 23:08:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2008 16:08:57 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2008 23:08:13 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8A6AE1A9832; Wed, 23 Apr 2008 16:08:33 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r651098 - /stdcxx/branches/4.2.x/tests/localization/22.locale.time.get.cpp Date: Wed, 23 Apr 2008 23:08:33 -0000 To: commits@stdcxx.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080423230833.8A6AE1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebor Date: Wed Apr 23 16:08:29 2008 New Revision: 651098 URL: http://svn.apache.org/viewvc?rev=651098&view=rev Log: 2008-04-23 Martin Sebor STDCXX-775 * test/localization/22.locale.time.get.cpp (make_LC_TIME): Asserted postconditions to silence HP aCC 6/cadvise warning #20200: Potential null pointer dereference. Modified: stdcxx/branches/4.2.x/tests/localization/22.locale.time.get.cpp Modified: stdcxx/branches/4.2.x/tests/localization/22.locale.time.get.cpp URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/localization/22.locale.time.get.cpp?rev=651098&r1=651097&r2=651098&view=diff ============================================================================== --- stdcxx/branches/4.2.x/tests/localization/22.locale.time.get.cpp (original) +++ stdcxx/branches/4.2.x/tests/localization/22.locale.time.get.cpp Wed Apr 23 16:08:29 2008 @@ -1141,6 +1141,9 @@ rw_fatal (0 != fout, 0, __LINE__, "fopen(%#s, \"w\") failed: %{#m} - %m", srcfname); + // rw_fatal() doesn't return on failure + RW_ASSERT (0 != fout); + std::fprintf (fout, "LC_TIME\n"); unsigned i; @@ -1278,6 +1281,9 @@ fout = std::fopen (cmfname, "w"); rw_fatal (0 != fout, 0, __LINE__, "fopen(%#s, \"w\") failed: %{#m} - %m", cmfname); + + // rw_fatal() doesn't return on failure + RW_ASSERT (0 != fout); pcs_write (fout, 0);