From b7d329ffda7c12e24c9fff00275488b15d35cdad Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 29 Mar 2017 15:52:08 +0300 Subject: Fix tests compilation. --- src/fs/virtfs/zip_unittest.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/fs/virtfs/zip_unittest.cc') diff --git a/src/fs/virtfs/zip_unittest.cc b/src/fs/virtfs/zip_unittest.cc index 401768b7c..9d471795c 100644 --- a/src/fs/virtfs/zip_unittest.cc +++ b/src/fs/virtfs/zip_unittest.cc @@ -230,7 +230,7 @@ TEST_CASE("Zip readFile") headers[f]->fileName.c_str(), headers[f]->compressSize, headers[f]->uncompressSize); - uint8_t *const buf = Zip::readFile(headers[f]); + const uint8_t *const buf = Zip::readFile(headers[f]); REQUIRE(buf != nullptr); delete [] buf; } @@ -249,9 +249,9 @@ TEST_CASE("Zip readFile") REQUIRE(headers.size() == 11); REQUIRE(entry->root == name); // test.txt - uint8_t *buf = Zip::readFile(headers[0]); + const uint8_t *buf = Zip::readFile(headers[0]); REQUIRE(buf != nullptr); - const std::string str = std::string(reinterpret_cast(buf), + const std::string str = std::string(reinterpret_cast(buf), headers[0]->uncompressSize); REQUIRE(str == "test line 1\ntest line 2"); delete [] buf; @@ -285,7 +285,7 @@ TEST_CASE("Zip readFile") headers[f]->fileName.c_str(), headers[f]->compressSize, headers[f]->uncompressSize); - uint8_t *const buf = Zip::readFile(headers[f]); + const uint8_t *const buf = Zip::readFile(headers[f]); REQUIRE(buf != nullptr); delete [] buf; } -- cgit v1.2.3-70-g09d2