diff options
author | Billy Robert O'Neal III <bion@microsoft.com> | 2018-04-26 22:18:33 +0000 |
---|---|---|
committer | Billy Robert O'Neal III <bion@microsoft.com> | 2018-04-26 22:18:33 +0000 |
commit | 6e083f628a7e58e60a1817279495676a73563436 (patch) | |
tree | ce308aadbf1a05b3e5349cab8666e09a020a3a2b /llvm/tools/llvm-mca/DispatchStatistics.cpp | |
parent | 3e790840a9efe4303c0baf3b07b15d95a413ba94 (diff) | |
download | bcm5719-llvm-6e083f628a7e58e60a1817279495676a73563436.tar.gz bcm5719-llvm-6e083f628a7e58e60a1817279495676a73563436.zip |
[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
Diffstat (limited to 'llvm/tools/llvm-mca/DispatchStatistics.cpp')
0 files changed, 0 insertions, 0 deletions