[tracker] functional-tests: Add test for NB#223536



commit ff10e77ec81c69b91c5e1acfbccb43aed2130b0f
Author: Ivan Frade <ivan frade nokia com>
Date:   Tue Feb 8 15:17:43 2011 +0200

    functional-tests: Add test for NB#223536
    
    Mp3 without artist or album. It make tracker-extract crash.

 .../test-extraction-data/audio/Makefile.am         |    4 +++-
 .../audio/empty_albumi_song3.expected              |   12 ++++++++++++
 .../audio/empty_albumi_song3.mp3                   |  Bin 0 -> 49153 bytes
 3 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/tests/functional-tests/test-extraction-data/audio/Makefile.am b/tests/functional-tests/test-extraction-data/audio/Makefile.am
index 0395544..fe7621f 100644
--- a/tests/functional-tests/test-extraction-data/audio/Makefile.am
+++ b/tests/functional-tests/test-extraction-data/audio/Makefile.am
@@ -8,6 +8,8 @@ audiotest_DATA =                                       \
 	audio-test-2.mp3                               \
 	audio-test-2.expected			       \
 	Jazz_Audio_OPLs0.pya			       \
-	Jazz_Audio_OPLs0.expected
+	Jazz_Audio_OPLs0.expected		       \
+	empty_albumi_song3.mp3			       \
+	empty_albumi_song3.expected
 
 EXTRA_DIST = $(audiotest_DATA)
diff --git a/tests/functional-tests/test-extraction-data/audio/empty_albumi_song3.expected b/tests/functional-tests/test-extraction-data/audio/empty_albumi_song3.expected
new file mode 100644
index 0000000..17c91ec
--- /dev/null
+++ b/tests/functional-tests/test-extraction-data/audio/empty_albumi_song3.expected
@@ -0,0 +1,12 @@
+[TestFile]
+Filename=empty_albumi_song3.mp3
+Bugzilla=NB#223536, NB#223148
+Comment=Mp3 with empty Artist and album. Made extractor crash.
+
+[Metadata]
+a=nmm:MusicPiece
+nie_title=song3
+
+[Meego]
+nfo_height=144
+nfo_width=192
diff --git a/tests/functional-tests/test-extraction-data/audio/empty_albumi_song3.mp3 b/tests/functional-tests/test-extraction-data/audio/empty_albumi_song3.mp3
new file mode 100644
index 0000000..b19e2e6
Binary files /dev/null and b/tests/functional-tests/test-extraction-data/audio/empty_albumi_song3.mp3 differ



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]