You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcxx/test/std/input.output/file.streams/fstreams/filebuf.virtuals
Billy Robert O'Neal III c3ae85dbcf [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.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@330999 91177308-0d34-0410-b5e6-96231b3b80d8
7 years ago
..
overflow.pass.cpp [libcxx] Add appropriate 'REQUIRE' directives to tests that require en_US.UTF-8. 9 years ago
pbackfail.pass.cpp [libcxx] [test] Remove non-portable assertions from filebuf tests 7 years ago
seekoff.pass.cpp [libcxx] [test] Remove non-portable assertions from filebuf tests 7 years ago
underflow.dat Move test into test/std subdirectory. 10 years ago
underflow.pass.cpp Fix warning caused by platforms providing a signed wint_t 8 years ago
underflow_utf8.dat Move test into test/std subdirectory. 10 years ago