diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-14 05:27:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-14 14:23:19 +0300 |
commit | 437773957d27b1436f41e3926be3776df2c98885 (patch) | |
tree | ce079b94b055ad80c4d97eda6353c390a7b757ea /src | |
parent | 8c10bf43797c2d637b7292575271ab201296b020 (diff) | |
download | manaverse-437773957d27b1436f41e3926be3776df2c98885.tar.gz manaverse-437773957d27b1436f41e3926be3776df2c98885.tar.bz2 manaverse-437773957d27b1436f41e3926be3776df2c98885.tar.xz manaverse-437773957d27b1436f41e3926be3776df2c98885.zip |
Fix unit tests.
Diffstat (limited to 'src')
-rw-r--r-- | src/integrity_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/integrity_unittest.cc b/src/integrity_unittest.cc index 65c4b5fb9..31cda2d56 100644 --- a/src/integrity_unittest.cc +++ b/src/integrity_unittest.cc @@ -246,8 +246,6 @@ TEST_CASE("integrity tests", "integrity") SDL_RWops *const rw = VirtFs::RWopsOpenRead(name1); if (!rw) logger->log("Physfs error: %s", VirtFs::getLastError()); - VirtFs::removeZipFromSearchPath("data/test/test.zip"); - VirtFs::removeZipFromSearchPath("../data/test/test.zip"); REQUIRE(rw != nullptr); unsigned char buf[size1]; const size_t sz = SDL_RWread(rw, buf, 1, size1); @@ -255,6 +253,8 @@ TEST_CASE("integrity tests", "integrity") SDL_RWclose(rw); REQUIRE(sz == size1); SDL_RWclose(rw); + VirtFs::removeZipFromSearchPath("data/test/test.zip"); + VirtFs::removeZipFromSearchPath("../data/test/test.zip"); REQUIRE(compareBuffers(buf) == true); } |