From 0f2cacd35a093d61389f21f955d4475673a252b3 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Fri, 17 Aug 2018 03:31:29 +0200 Subject: [PATCH] rwtests: fix FileIndex test on Windows --- tests/test_FileIndex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_FileIndex.cpp b/tests/test_FileIndex.cpp index 8a23c8cc..bc36b184 100644 --- a/tests/test_FileIndex.cpp +++ b/tests/test_FileIndex.cpp @@ -33,7 +33,7 @@ BOOST_AUTO_TEST_CASE(test_indexTree) { BOOST_CHECK(upperpath != truepath); rwfs::path expected{Global::getGamePath()}; expected /= "data/CULLZONE.DAT"; - BOOST_CHECK_EQUAL(truepath.string(), expected.string()); + BOOST_CHECK(expected.compare(expected) == 0); } { std::string upperpath{"DATA/MAPS/COMNBTM/COMNBTM.IPL"}; @@ -42,7 +42,7 @@ BOOST_AUTO_TEST_CASE(test_indexTree) { BOOST_CHECK(upperpath != truepath); rwfs::path expected{Global::getGamePath()}; expected /= "data/maps/comnbtm/comNbtm.ipl"; - BOOST_CHECK_EQUAL(truepath.string(), expected.string()); + BOOST_CHECK(expected.compare(truepath) == 0); } }