aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzard <fuzzard@users.noreply.github.com>2024-06-30 03:43:31 +1000
committerGitHub <noreply@github.com>2024-06-30 03:43:31 +1000
commit345e77e974d346af41ad768716eaeb6990b941ab (patch)
tree8985a761140028816859abf2c756bf0258112898
parentc0642b653fd8b3227bed9ab86f9cd9d853d2d3b4 (diff)
parent5748081f1fb2074eb30c589357d8bc39ed870afb (diff)
Merge pull request #25402 from fuzzard/tests_playlistwpl_fix
[tests][Playlists] Fix PlaylistsWPL test for windows
-rw-r--r--xbmc/playlists/test/TestPlayListWPL.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/xbmc/playlists/test/TestPlayListWPL.cpp b/xbmc/playlists/test/TestPlayListWPL.cpp
index 19a687c9a2..df3c620c09 100644
--- a/xbmc/playlists/test/TestPlayListWPL.cpp
+++ b/xbmc/playlists/test/TestPlayListWPL.cpp
@@ -8,6 +8,7 @@
#include "FileItem.h"
#include "URL.h"
+#include "Util.h"
#include "music/tags/MusicInfoTag.h"
#include "playlists/PlayListWPL.h"
#include "test/TestUtils.h"
@@ -37,8 +38,18 @@ TEST(TestPlayListWPL, LoadData)
EXPECT_EQ(playlist.size(), 3);
EXPECT_STREQ(playlist[0]->GetLabel().c_str(), "track01.mp3");
+
+ std::string track_url = "\\\\server\\vol\\music\\Classical\\Composer\\OrganWorks\\cd03\\track01.mp3";
+ std::string track_path = "";
+ CUtil::GetQualifiedFilename(track_path, track_url);
+
EXPECT_STREQ(playlist[0]->GetURL().Get().c_str(),
- "/server/vol/music/Classical/Composer/OrganWorks/cd03/track01.mp3");
+ (track_path + track_url).c_str());
+
+
+ track_url = "\\\\server\\vol\\music\\Classical\\Composer\\OrganWorks\\cd03\\track02.mp3";
+ track_path = "";
+ CUtil::GetQualifiedFilename(track_path, track_url);
EXPECT_STREQ(playlist[1]->GetURL().Get().c_str(),
- "/server/vol/music/Classical/Composer/OrganWorks/cd03/track02.mp3");
+ (track_path + track_url).c_str());
}