mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 12:57:31 +02:00
Fix warning in file tests
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
Version 187:
|
||||
|
||||
* Add experimental timeout_socket
|
||||
* Fix warning in file tests
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@ -68,11 +68,13 @@ doTestFile(beast::unit_test::suite& test)
|
||||
test.BEAST_EXPECT(ec == errc::invalid_argument);
|
||||
ec.assign(0, ec.category());
|
||||
|
||||
f.read(nullptr, 0, ec);
|
||||
char tmp[1];
|
||||
|
||||
f.read(tmp, 0, ec);
|
||||
test.BEAST_EXPECT(ec == errc::invalid_argument);
|
||||
ec.assign(0, ec.category());
|
||||
|
||||
f.write(nullptr, 0, ec);
|
||||
f.write(tmp, 0, ec);
|
||||
test.BEAST_EXPECT(ec == errc::invalid_argument);
|
||||
ec.assign(0, ec.category());
|
||||
|
||||
|
Reference in New Issue
Block a user