#define TEST_SET_PLAYLIST_SUB_2 "test_playlist_234"
#define TEST_SET_PLAYLIST_SUB_3 "test_playlist_345"
-#define TEST_PLAYLIST_CREATION_PATH "/opt/usr/media/sample.m3u"
-
//& set: MediaPlaylist
static const char *img_file = "image.jpg";
static char *img_path = NULL;
media_playlist_h playlist;
int playlist_id = 0;
+ ret = media_playlist_add_media(g_playlist, g_media_id);
+ assert_eq(ret, MEDIA_CONTENT_ERROR_NONE);
+
+ ret = media_playlist_update_to_db(g_playlist);
+ assert_eq(ret, MEDIA_CONTENT_ERROR_NONE);
+
+ ret = media_playlist_export_to_file(g_playlist, copy_path);
+ assert_eq(ret, MEDIA_CONTENT_ERROR_NONE);
+
ret = media_playlist_import_from_file(copy_path, TEST_SET_PLAYLIST_SUB_3, &playlist);
if(playlist != NULL) {