llvm-project/libcxx/test/std/input.output
Billy Robert O'Neal III 6e083f628a [libcxx] [test] Remove non-portable assertions from filebuf tests
seekoff.pass.cpp:
libc++'s tests are asserting things about the buffer passed to pubsetbuf. [filebuf.virtuals]/12 says that what the filebuf does with the buffer you give it is completely implementation defined. The MSVC++ implementation takes that buffer and hands it off to the CRT (by calling ::setvbuf) and the CRT doesn't necessarily follow the pattern this test wants.
This change simply makes asserts against the buffer's contents use LIBCPP_ASSERT instead of assert.

pbackfail.pass.cpp:
libc++'s tests are asserting about what characters will and will not be available in the putback area. [filebuf.virtuals]/9 says "The function can alter the number of putback positions available as a result of any call." This change LIBCPP_ASSERTS libc++'s behavior, but checks invariants of the putback area independently.

llvm-svn: 330999
2018-04-26 22:18:33 +00:00
..
file.streams [libcxx] [test] Remove non-portable assertions from filebuf tests 2018-04-26 22:18:33 +00:00
input.output.general
iostream.format [libcxx] [test] Use the correct type from strlen. Include correct header. 2018-04-10 03:04:07 +00:00
iostream.forward [libcxx] [test] D26314: Fix MSVC warning C4189 "local variable is initialized but not referenced". 2016-11-14 17:35:14 +00:00
iostream.objects Move remaining _LIBCPP_VERSION tests into test/libcxx 2016-06-22 02:23:22 +00:00
iostreams.base [libcxx] [test] Remove nonportable that errc::is_a_directory produces "Is a directory" from ios_base::failure tests 2018-04-25 01:58:55 +00:00
iostreams.requirements
stream.buffers Add a catch for std::length_error for the case where the string can't handle 2GB. (like say 32-bit big-endian) 2018-02-14 18:05:25 +00:00
string.streams libcxx: Fix for basic_stringbuf::seekoff() after r320604. 2017-12-19 23:33:16 +00:00
nothing_to_do.pass.cpp