partly fix TestPlaylistFileProvider
authorSven Krohlas <sven@asbest-online.de>
Wed, 20 Jun 2012 12:54:16 +0000 (14:54 +0200)
committerSven Krohlas <sven@asbest-online.de>
Wed, 20 Jun 2012 12:54:16 +0000 (14:54 +0200)
commit1714ad3ca1c0cb368d64c5f2a35778ea21fee859
tree00c3653bb10210d30dfd660e8a70d505dcbf9352
parent483f0102fc28e437edc568c44576ec7532e84b37
partly fix TestPlaylistFileProvider

This one was quite broken. It no longer crashes but still fails.

It seems as if PlaylistFileProvider::save()
* returns NULL if attempting to save an m3u playlist (that was the cause of the crash)
* adds an additional.xspf to the given file name, if it ends with .xspf
* doesn't save a .pls file to disc

CCing Bart, you know that code waaaaaaaaay better than me. :)

CCMAIL:bart.cerneels@kde.org
src/playlistmanager/file/PlaylistFileProvider.cpp
src/playlistmanager/file/PlaylistFileProvider.h
tests/data/playlists/test.m3u
tests/playlistmanager/file/TestPlaylistFileProvider.cpp
tests/playlistmanager/file/TestPlaylistFileProvider.h