diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-31 05:16:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-31 05:16:23 +0300 |
commit | b0128502ed9eb867e474ed03975d8b1971c48a9c (patch) | |
tree | 6de6f442371e247822900414e4e232b1a0407f0f /src/fs/virtfs | |
parent | 6b0b9303ad0bfed13eefdf014d5b10ad1eb7a627 (diff) | |
download | manaplus-b0128502ed9eb867e474ed03975d8b1971c48a9c.tar.gz manaplus-b0128502ed9eb867e474ed03975d8b1971c48a9c.tar.bz2 manaplus-b0128502ed9eb867e474ed03975d8b1971c48a9c.tar.xz manaplus-b0128502ed9eb867e474ed03975d8b1971c48a9c.zip |
Fix unit tests compilation with SDL2.
Diffstat (limited to 'src/fs/virtfs')
-rw-r--r-- | src/fs/virtfs/virtfs1_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/virtfs/virtfs1_unittest.cc b/src/fs/virtfs/virtfs1_unittest.cc index 6dc0ca868..4971212ef 100644 --- a/src/fs/virtfs/virtfs1_unittest.cc +++ b/src/fs/virtfs/virtfs1_unittest.cc @@ -1546,7 +1546,7 @@ TEST_CASE("VirtFs1 rwops_read2") file = VirtFs::rwopsOpenRead("dir2//test.txt"); REQUIRE(file != nullptr); #ifdef USE_SDL2 - REQUIRE(VirtFs::fileLength(file) == 23); + REQUIRE(file->size(file) == 23); #endif // USE_SDL2 const int fileSize = 23; @@ -1562,7 +1562,7 @@ TEST_CASE("VirtFs1 rwops_read2") file = VirtFs::rwopsOpenRead("dir2\\/test.txt"); REQUIRE(file != nullptr); #ifdef USE_SDL2 - REQUIRE(VirtFs::fileLength(file) == 23); + REQUIRE(file->size(file) == 23); #endif // USE_SDL2 const int fileSize = 23; @@ -1718,7 +1718,7 @@ TEST_CASE("VirtFs1 rwops_read3") file = VirtFs::rwopsOpenRead("test/test.txt"); REQUIRE(file != nullptr); #ifdef USE_SDL2 - REQUIRE(VirtFs::fileLength(file) == 23); + REQUIRE(file->size(file) == 23); #endif // USE_SDL2 const int fileSize = 23; @@ -1734,7 +1734,7 @@ TEST_CASE("VirtFs1 rwops_read3") file = VirtFs::rwopsOpenRead("test\\test.txt"); REQUIRE(file != nullptr); #ifdef USE_SDL2 - REQUIRE(VirtFs::fileLength(file) == 23); + REQUIRE(file->size(file) == 23); #endif // USE_SDL2 const int fileSize = 23; |