Author: faridz Date: Thu Jul 5 05:45:50 2007 New Revision: 553483 URL: http://svn.apache.org/viewvc?view=rev&rev=553483 Log: 2007-07-05 Farid Zaripov <[EMAIL PROTECTED]>
* 27.ostream.cpp (test_formatted): Don't check os.width(0) if _RWSTD_NO_EXT_KEEP_WIDTH_ON_FAILURE defined. Modified: incubator/stdcxx/trunk/tests/iostream/27.ostream.cpp Modified: incubator/stdcxx/trunk/tests/iostream/27.ostream.cpp URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/iostream/27.ostream.cpp?view=diff&rev=553483&r1=553482&r2=553483 ============================================================================== --- incubator/stdcxx/trunk/tests/iostream/27.ostream.cpp (original) +++ incubator/stdcxx/trunk/tests/iostream/27.ostream.cpp Thu Jul 5 05:45:50 2007 @@ -779,16 +779,19 @@ if (!tsb.throws_ && !tnp.throws_) { + bool pass; + +#ifdef _RWSTD_NO_EXT_KEEP_WIDTH_ON_FAILURE // verify that width(0) has been called (unless there are exceptions // involved, in which case it's unspecified whether width(0) has or // has not been called - bool pass = - !((!exceptions || !tsb.fails_ && !tnp.fails_) && os.width ()); + pass = !((!exceptions || !tsb.fails_ && !tnp.fails_) && os.width ()); rw_assert (pass, __FILE__, line1, "%d. std::basic_ostream<%s>::operator<<(%s = %{#lc})" ".width () == 0, got %d", line2, cname, tname, val, os.width ()); +#endif // _RWSTD_NO_EXT_KEEP_WIDTH_ON_FAILURE // verify that ios_base::failure has been thrown (and caught) // if badbit is set in exceptions