summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-09-01 21:02:45 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-09-01 21:02:45 +0000
commit00d8c245b26d74415a712cb99687ac9ffe01fbf4 (patch)
tree101d4b29b7440503b856ad115b12a8c83d283aa5 /libcxx/test
parentcbbc0141f6c1bcae309ebaaa100cfd03c4386c52 (diff)
downloadbcm5719-llvm-00d8c245b26d74415a712cb99687ac9ffe01fbf4.tar.gz
bcm5719-llvm-00d8c245b26d74415a712cb99687ac9ffe01fbf4.zip
Reimplemented much of <istream> such that single character extractions do not check to see if this is the last character in the stream and thus never set eofbit. This fixes http://llvm.org/bugs/show_bug.cgi?id=10817 . This fix requires a recompiled libc++.dylib to be fully implemented. The recompiled libc++.dylib is ABI compatible with that shipped on Lion.
llvm-svn: 138961
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/get.pass.cpp4
-rw-r--r--libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/get_chart.pass.cpp4
-rw-r--r--libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/read.pass.cpp4
-rw-r--r--libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/readsome.pass.cpp4
-rw-r--r--libcxx/test/numerics/complex.number/complex.ops/stream_input.pass.cpp4
5 files changed, 10 insertions, 10 deletions
diff --git a/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/get.pass.cpp b/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/get.pass.cpp
index c8deda37d9d..41a721d50f1 100644
--- a/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/get.pass.cpp
+++ b/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/get.pass.cpp
@@ -68,7 +68,7 @@ int main()
assert(c == 'b');
assert(is.gcount() == 1);
c = is.get();
- assert( is.eof());
+ assert(!is.eof());
assert(!is.fail());
assert(c == 'c');
assert(is.gcount() == 1);
@@ -92,7 +92,7 @@ int main()
assert(c == L'b');
assert(is.gcount() == 1);
c = is.get();
- assert( is.eof());
+ assert(!is.eof());
assert(!is.fail());
assert(c == L'c');
assert(is.gcount() == 1);
diff --git a/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/get_chart.pass.cpp b/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/get_chart.pass.cpp
index 15dd949967a..cf06e343bcc 100644
--- a/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/get_chart.pass.cpp
+++ b/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/get_chart.pass.cpp
@@ -70,7 +70,7 @@ int main()
assert(c == 'b');
assert(is.gcount() == 1);
is.get(c);
- assert( is.eof());
+ assert(!is.eof());
assert(!is.fail());
assert(c == 'c');
assert(is.gcount() == 1);
@@ -95,7 +95,7 @@ int main()
assert(c == L'b');
assert(is.gcount() == 1);
is.get(c);
- assert( is.eof());
+ assert(!is.eof());
assert(!is.fail());
assert(c == L'c');
assert(is.gcount() == 1);
diff --git a/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/read.pass.cpp b/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/read.pass.cpp
index 2060ff21bd7..20e70cfbd5c 100644
--- a/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/read.pass.cpp
+++ b/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/read.pass.cpp
@@ -50,7 +50,7 @@ int main()
assert(std::string(s, 5) == " 1234");
assert(is.gcount() == 5);
is.read(s, 5);
- assert( is.eof());
+ assert(!is.eof());
assert(!is.fail());
assert(std::string(s, 5) == "56789");
assert(is.gcount() == 5);
@@ -69,7 +69,7 @@ int main()
assert(std::wstring(s, 5) == L" 1234");
assert(is.gcount() == 5);
is.read(s, 5);
- assert( is.eof());
+ assert(!is.eof());
assert(!is.fail());
assert(std::wstring(s, 5) == L"56789");
assert(is.gcount() == 5);
diff --git a/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/readsome.pass.cpp b/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/readsome.pass.cpp
index 46446689596..fe853d3a492 100644
--- a/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/readsome.pass.cpp
+++ b/libcxx/test/input.output/iostream.format/input.streams/istream.unformatted/readsome.pass.cpp
@@ -55,7 +55,7 @@ int main()
assert(std::string(s, 5) == "56789");
assert(is.gcount() == 5);
is.readsome(s, 5);
- assert( is.eof());
+ assert(!is.eof());
assert(!is.fail());
assert(is.gcount() == 1);
assert(std::string(s, 1) == "0");
@@ -75,7 +75,7 @@ int main()
assert(std::wstring(s, 5) == L"56789");
assert(is.gcount() == 5);
is.readsome(s, 5);
- assert( is.eof());
+ assert(!is.eof());
assert(!is.fail());
assert(is.gcount() == 1);
assert(std::wstring(s, 1) == L"0");
diff --git a/libcxx/test/numerics/complex.number/complex.ops/stream_input.pass.cpp b/libcxx/test/numerics/complex.number/complex.ops/stream_input.pass.cpp
index f3c0f5244b1..24644e30779 100644
--- a/libcxx/test/numerics/complex.number/complex.ops/stream_input.pass.cpp
+++ b/libcxx/test/numerics/complex.number/complex.ops/stream_input.pass.cpp
@@ -87,13 +87,13 @@ int main()
std::complex<double> c;
is >> c;
assert(c == std::complex<double>(-5.5, -6.5));
- assert(is.eof());
+ assert(!is.eof());
}
{
std::istringstream is("(-5.5,-6.5)");
std::complex<double> c;
is >> c;
assert(c == std::complex<double>(-5.5, -6.5));
- assert(is.eof());
+ assert(!is.eof());
}
}
OpenPOWER on IntegriCloud