summaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-29 15:52:08 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-29 15:52:08 +0300
commitb7d329ffda7c12e24c9fff00275488b15d35cdad (patch)
treed35b850a5297f568144adbb319ab4627ce92ca4b /src/fs
parent5552b6f960a562522c36992aeca6dd2e22e9b111 (diff)
downloadmv-b7d329ffda7c12e24c9fff00275488b15d35cdad.tar.gz
mv-b7d329ffda7c12e24c9fff00275488b15d35cdad.tar.bz2
mv-b7d329ffda7c12e24c9fff00275488b15d35cdad.tar.xz
mv-b7d329ffda7c12e24c9fff00275488b15d35cdad.zip
Fix tests compilation.
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/virtfs/zip_unittest.cc8
1 files changed, 4 insertions, 4 deletions
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<char*>(buf),
+ const std::string str = std::string(reinterpret_cast<const char*>(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;
}