hanchenye-llvm-project/libcxx
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
..
benchmarks Implement filesystem NB comments, relative paths, and related issues. 2018-04-02 23:03:41 +00:00
cmake Revert "[CMake] Use custom command and target to install libc++ headers" 2018-04-09 04:36:04 +00:00
docs Fix typos. 2018-02-13 08:12:00 +00:00
fuzzing Wrote my own version of is_permutation; that was dominating the timings 2018-01-19 03:17:45 +00:00
include [libcxx] func.wrap.func.con: Unset function before destroying anything 2018-04-25 23:38:41 +00:00
lib Revert "[CMake] Use custom command and target to install libc++ headers" 2018-04-09 04:36:04 +00:00
src Fix locale test data for GLIBC 2.27 and newer. 2018-04-04 04:00:14 +00:00
test [libcxx] [test] Remove non-portable assertions from filebuf tests 2018-04-26 22:18:33 +00:00
utils Avoid Clang error about throwing _LIBCPP_ASSERT in noexcept function. 2018-03-22 23:01:08 +00:00
www Mark <span> as "In progress" 2018-04-06 04:43:27 +00:00
.arcconfig
.clang-format
.gitignore
CMakeLists.txt [CMake] Set the default ABI version for Fuchsia in CMake as well 2018-04-13 01:59:15 +00:00
CREDITS.TXT
LICENSE.TXT
NOTES.TXT Revert "[CMake] Use custom command and target to install libc++ headers" 2018-04-09 04:36:04 +00:00
TODO.TXT
appveyor-reqs-install.cmd Update Clang version on Appveyor bots 2018-04-04 04:33:09 +00:00
appveyor.yml