]> git.sesse.net Git - vlc/blobdiff - test/libvlc/test.h
Replace libvlc_exception_get_message with libvlc_errmsg
[vlc] / test / libvlc / test.h
index e8aa06a8c518a315d8142514b467d931ad58a1d7..7ac1f202084b2d8cc670228e29b71ef2b35e9454 100644 (file)
@@ -88,19 +88,16 @@ static inline void catch (void)
 {
     if (libvlc_exception_raised (&ex))
     {
-         fprintf (stderr, "Exception: %s\n",
-                  libvlc_exception_get_message (&ex));
+         fprintf (stderr, "Exception: %s\n", libvlc_errmsg ());
          abort ();
     }
-
-    assert (libvlc_exception_get_message (&ex) == NULL);
     libvlc_exception_clear (&ex);
 }
 
 static inline void test_init (void)
 {
     (void)test_default_sample; /* This one may not be used */
-    alarm (50); /* Make sure "make check" does not get stuck */
+    alarm (10); /* Make sure "make check" does not get stuck */
 }
 
 #endif /* TEST_H */