From 0f172abb004bed203f8bf329e4f43eb174a8a58c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Mar 2017 02:19:37 +0300 Subject: Fix compilation without physfs. Also split fs related files to virtfs and physfs. --- src/integrity_unittest.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/integrity_unittest.cc') diff --git a/src/integrity_unittest.cc b/src/integrity_unittest.cc index b7b97321a..58e22772a 100644 --- a/src/integrity_unittest.cc +++ b/src/integrity_unittest.cc @@ -45,7 +45,9 @@ #include "utils/env.h" #include "utils/delete2.h" +#ifdef USE_PHYSFS #include +#endif // USE_PHYSFS #include #include "debug.h" @@ -260,6 +262,7 @@ TEST_CASE("integrity tests", "integrity") REQUIRE(compareBuffers(buf) == true); } +#ifdef USE_PHYSFS SECTION("integrity Loader::getImage test 5") { VirtFs::addZipToSearchPath("data/test/test.zip", Append_false); @@ -402,6 +405,7 @@ TEST_CASE("integrity tests", "integrity") VirtFs::removeZipFromSearchPath("../data/test/test.zip"); REQUIRE(compareBuffers(buf) == true); } +#endif // USE_PHYSFS SECTION("integrity Loader::getImage test 7") { -- cgit v1.2.3-60-g2f50