Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 32695 invoked from network); 2 Jul 2007 15:31:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jul 2007 15:31:56 -0000 Received: (qmail 68546 invoked by uid 500); 2 Jul 2007 15:31:59 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 68535 invoked by uid 500); 2 Jul 2007 15:31:59 -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 68516 invoked by uid 99); 2 Jul 2007 15:31:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2007 08:31:59 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of Farid_Zaripov@epam.com designates 217.21.63.3 as permitted sender) Received: from [217.21.63.3] (HELO EPMSA009.epam.com) (217.21.63.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2007 08:31:56 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: STDCXX tests fails and reasons [MSVC] Date: Mon, 2 Jul 2007 18:31:32 +0300 Message-ID: <7BDB2168BEAEF14C98F1901FD2DE64389D7408@epmsa009.minsk.epam.com> In-Reply-To: <468495B7.2040900@roguewave.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: STDCXX tests fails and reasons [MSVC] Thread-Index: Ace6DNEcFPljc1AXQS6mfVd0Hg27cwCr8IUw References: <7BDB2168BEAEF14C98F1901FD2DE64389D70B2@epmsa009.minsk.epam.com> <468495B7.2040900@roguewave.com> From: "Farid Zaripov" To: X-Virus-Checked: Checked by ClamAV on apache.org > -----Original Message----- > From: Martin Sebor [mailto:msebor@gmail.com] On Behalf Of Martin Sebor > Sent: Friday, June 29, 2007 8:17 AM > To: stdcxx-dev@incubator.apache.org > Subject: Re: STDCXX tests fails and reasons [MSVC] >=20 > > Another problem in that test is difference between > > char_traits::eof() =3D=3D int(-1) > > and char_traits::eof() =3D=3D int (65536). >=20 > char_traits::eof() should equal WEOF. Is WEOF equal to > 65536 on Windows? Yes. Below is a definition of the WEOF in wctype.h (MSVC 8): #define WEOF (wint_t)(0xFFFF) > The test probably assumes that EOF is the=20 > same as WEOF which may not be a safe assumption. Exactly right. > > The basic_stringbuf<>::pbackfail() test > > (line 637) expected EOF =3D=3D -1 and issues rw_error() diagnostic = on=20 > > whar_t tests. >=20 > Is this still 27.stringbuf.virtuals.cpp? I don't see any=20 > rw_error() in there. Line 637 is the first line with failed test (EOF expected, WEOF got). // +----------------------------------------- initial sequence (if any) // | +---------------------------------- open mode // | | +------------------------ gbump (gptr offset) // | | | +-------------------- pbackfail argument // | | | | +---------------- expected return value // | | | | | +----------- number of putback positions // | | | | | | +-------- number of read positions // | | | | | | | +----- number of write positions // | | | | | | | | // V V V V V V V V TEST (0, 0, 0, 'c', EOF, 0, 0, -1); Farid.