istream_unformatted.cc (test05): Fixup.
2000-11-26 Benjamin Kosnik <bkoz@redhat.com> * testsuite/27_io/istream_unformatted.cc (test05): Fixup. From-SVN: r37769
This commit is contained in:
parent
44382959be
commit
158227a66a
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
2000-11-26 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* testsuite/27_io/istream_unformatted.cc (test05): Fixup.
|
||||
|
||||
2000-11-26 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* acinclude.m4: Only sanity check for compiler version when
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue