]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/log: fix for crash with libc++ 20233/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 1 Feb 2018 14:37:47 +0000 (09:37 -0500)
committerCasey Bodley <cbodley@redhat.com>
Thu, 1 Feb 2018 14:37:48 +0000 (09:37 -0500)
commit77a3b64f0d7d9e95b921a45c0a8c1650d5910315
tree9fbfd380c2b569fa31b9bdbcefd182eb5a99f1ba
parent69e479bd46ae9a098f990331baa4ee6b98c0750b
test/log: fix for crash with libc++

the original issue reproduced with operator<<(const char*) in libstdc++,
but this actually crashes with libc++. test the std::basic_streambuf*
overload instead, which is called out explicitly in
http://en.cppreference.com/w/cpp/io/ios_base/iostate:

> The badbit is set by the following standard library functions:
> * basic_ostream::operator<<(basic_streambuf*) when a null pointer is passed as the argument.

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/log/test.cc