summaryrefslogtreecommitdiff
path: root/src/fs/virtfs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-31 05:16:23 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-31 05:16:23 +0300
commitb0128502ed9eb867e474ed03975d8b1971c48a9c (patch)
tree6de6f442371e247822900414e4e232b1a0407f0f /src/fs/virtfs
parent6b0b9303ad0bfed13eefdf014d5b10ad1eb7a627 (diff)
downloadmv-b0128502ed9eb867e474ed03975d8b1971c48a9c.tar.gz
mv-b0128502ed9eb867e474ed03975d8b1971c48a9c.tar.bz2
mv-b0128502ed9eb867e474ed03975d8b1971c48a9c.tar.xz
mv-b0128502ed9eb867e474ed03975d8b1971c48a9c.zip
Fix unit tests compilation with SDL2.
Diffstat (limited to 'src/fs/virtfs')
-rw-r--r--src/fs/virtfs/virtfs1_unittest.cc8
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;