Skip to content

Commit

Permalink
Merge pull request #20233 from cbodley/wip-test-log-nullptr
Browse files Browse the repository at this point in the history
test/log: fix for crash with libc++

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Feb 6, 2018
2 parents d4254db + 77a3b64 commit 439cf82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/log/test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ TEST(Log, ReuseBad)
{
auto e = log.create_entry(l, 1);
auto& out = e->get_ostream();
out << (const char*)nullptr;
out << (std::streambuf*)nullptr;
EXPECT_TRUE(out.bad()); // writing nullptr to a stream sets its badbit
log.submit_entry(e);
}
Expand Down

0 comments on commit 439cf82

Please sign in to comment.