From 158227a66aac2270747de0be47f1026e6bb13782 Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Mon, 27 Nov 2000 03:02:00 +0000 Subject: [PATCH] istream_unformatted.cc (test05): Fixup. 2000-11-26 Benjamin Kosnik * testsuite/27_io/istream_unformatted.cc (test05): Fixup. From-SVN: r37769 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/testsuite/27_io/istream_unformatted.cc | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index cdaecde9418..e6466024054 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2000-11-26 Benjamin Kosnik + + * testsuite/27_io/istream_unformatted.cc (test05): Fixup. + 2000-11-26 Benjamin Kosnik * acinclude.m4: Only sanity check for compiler version when diff --git a/libstdc++-v3/testsuite/27_io/istream_unformatted.cc b/libstdc++-v3/testsuite/27_io/istream_unformatted.cc index 96f47fab99b..ec96d490a33 100644 --- a/libstdc++-v3/testsuite/27_io/istream_unformatted.cc +++ b/libstdc++-v3/testsuite/27_io/istream_unformatted.cc @@ -379,7 +379,7 @@ aaaaaaaaaaaaaa std::stringbuf sb(charray, std::ios_base::in); std::istream ifs(&sb); std::streamsize blen = std::strlen(charray); - VERIFY(ifs); + VERIFY(!(!ifs)); while(ifs.getline(tmp, it) || ifs.gcount()) { br += ifs.gcount(); @@ -403,7 +403,7 @@ aaaaaaaaaaaaaa // -> n - 1 characters are stored ifs.clear(ifs.rdstate() & ~std::ios::failbit); VERIFY((ifs.gcount() == 0) || (std::strlen(tmp) == it - 1)); - VERIFY(ifs); + VERIFY(!(!ifs)); continue; } else @@ -458,10 +458,11 @@ test06() int test07() { + bool test = true; const char* tfn = "testsuite/istream_unformatted-3.txt"; std::ifstream infile; infile.open(tfn); - VERIFY( infile ); + VERIFY( !(!infile) ); while (infile) { std::string line; -- 2.30.2