From 437773957d27b1436f41e3926be3776df2c98885 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Feb 2017 05:27:31 +0300 Subject: Fix unit tests. --- src/integrity_unittest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3-60-g2f50