After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 617710 - test suite errors
test suite errors
Status: RESOLVED FIXED
Product: totem-pl-parser
Classification: Core
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: totem-pl-parser-maint
totem-pl-parser-maint
Depends on:
Blocks:
 
 
Reported: 2010-05-04 23:37 UTC by Christian Persch
Modified: 2010-05-04 23:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Persch 2010-05-04 23:37:44 UTC
First error:
(MSG: Testing data parsing "./HackerMedley"...)
(MSG: URI './HackerMedley' couldn't be opened in test_data_get_data: 'Fehler beim Öffnen der Datei: No such file or directory')
**
ERROR:parser.c:221:test_parsability: assertion failed: (data != NULL)
Aborted

This file appears to be missing from git ?


2nd error:

  /parser/parsing/hadess:                                              **
ERROR:parser.c:363:test_parsing_hadess: assertion failed: (simple_parser_test ("file:///home/hadess/Movies") == TOTEM_PL_PARSER_RESULT_SUCCESS)
FAIL

The obvious fix:

 test_parsing_hadess (void)
 {
-       if (g_strcmp0 (g_get_user_name (), "hadess"))
+       if (g_strcmp0 (g_get_user_name (), "hadess") == 0)
                g_assert (simple_parser_test ("file:///home/hadess/Movies") == TOTEM_PL_PARSER_RESULT_SUCCESS);


3rd error:

(MSG: Bug Reference: http://bugzilla.gnome.org/show_bug.cgi?id=594036)
(MSG: Got retval 2 for uri 'file:///opt/source/git/totem-pl-parser/plparse/tests/live-streaming.m3u')
**
ERROR:parser.c:434:test_parsing_live_streaming: assertion failed: (simple_parser_test (uri) == TOTEM_PL_PARSER_RESULT_UNHANDLED)
Aborted

It appears this test returns RESULT_SUCCESS, not UNHANDLED ?
Comment 1 Bastien Nocera 2010-05-04 23:55:03 UTC
Fixed 1 and 2, for 3, you'll need this change in shared-mime-info:

  <mime-type type="application/vnd.apple.mpegurl">
    <_comment>HTTP Live Streaming playlist</_comment>
    <glob pattern="*.m3u"/>
    <glob pattern="*.m3u8"/>
    <magic priority="70">
      <match type="string" value="#EXT-X-TARGETDURATION" offset="0:128"/>
    </magic>
  </mime-type>