Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 1785 invoked from network); 11 Oct 2007 01:20:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Oct 2007 01:20:35 -0000 Received: (qmail 14988 invoked by uid 500); 11 Oct 2007 01:20:23 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 14968 invoked by uid 500); 11 Oct 2007 01:20:23 -0000 Mailing-List: contact stdcxx-commits-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-commits@incubator.apache.org Received: (qmail 14957 invoked by uid 99); 11 Oct 2007 01:20:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2007 18:20:23 -0700 X-ASF-Spam-Status: No, hits=-100.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; Thu, 11 Oct 2007 01:20:35 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0BECC1A9832; Wed, 10 Oct 2007 18:19:45 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r583655 - /incubator/stdcxx/trunk/tests/regress/21.string.io.stdcxx-206.cpp Date: Thu, 11 Oct 2007 01:19:44 -0000 To: stdcxx-commits@incubator.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071011011945.0BECC1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebor Date: Wed Oct 10 18:19:40 2007 New Revision: 583655 URL: http://svn.apache.org/viewvc?rev=583655&view=rev Log: 2007-10-10 Martin Sebor * 21.string.io.stdcxx-206.cpp: Regression test for STDCXX-206. Added: incubator/stdcxx/trunk/tests/regress/21.string.io.stdcxx-206.cpp (with props) Added: incubator/stdcxx/trunk/tests/regress/21.string.io.stdcxx-206.cpp URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/regress/21.string.io.stdcxx-206.cpp?rev=583655&view=auto ============================================================================== --- incubator/stdcxx/trunk/tests/regress/21.string.io.stdcxx-206.cpp (added) +++ incubator/stdcxx/trunk/tests/regress/21.string.io.stdcxx-206.cpp Wed Oct 10 18:19:40 2007 @@ -0,0 +1,24 @@ +#include +#include +#include + +int main () +{ + std::string str ("abcdefghijk"); + + char buf[10]; + std::ostrstream os (buf, sizeof(buf)); + const std::streamsize width = 2; + + os.width (width); + os.exceptions (std::ios_base::failbit | std::ios_base::badbit); + + try { + os << str; + } + catch (std::ios_base::failure&) { + } + + assert (0 == os.width ()); + return 0; +} Propchange: incubator/stdcxx/trunk/tests/regress/21.string.io.stdcxx-206.cpp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/stdcxx/trunk/tests/regress/21.string.io.stdcxx-206.cpp ------------------------------------------------------------------------------ svn:keywords = Id