Fix warning in file tests

This commit is contained in:
Vinnie Falco committed 2018-10-28 21:19:12 -07:00
1 parent ef0658f678
commit 093af24e2b
2 files changed
+5 -2

No files matched your search

+4 -2
View File
@@ -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());