From 0ba652b2f58bcc9fee16228721c77d3676b17302 Mon Sep 17 00:00:00 2001
From: Mark H Weaver <mhw@netris.org>
Date: Tue, 23 Jun 2015 22:15:19 -0400
Subject: [PATCH] gnu: gst-plugins-good: Disable rtprtx tests that frequently
 fail.

* gnu/packages/gstreamer.scm (arguments): Add 'disable-failing-rtprtx-tests'
  phase.
---
 gnu/packages/gstreamer.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm
index 18329097b05..0f3a0fbdf01 100644
--- a/gnu/packages/gstreamer.scm
+++ b/gnu/packages/gstreamer.scm
@@ -222,6 +222,19 @@ (define-public gst-plugins-good
      `(("glib:bin" ,glib "bin")
        ("pkg-config" ,pkg-config)
        ("python-wrapper" ,python-wrapper)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after
+          'unpack 'disable-failing-rtprtx-tests
+          (lambda _
+            ;; Disable rtprtx tests that frequently fail.
+            ;; XXX FIXME: Try removing this for version > 1.4.5.
+            (substitute* "tests/check/elements/rtprtx.c"
+              (("tcase_add_test \\(tc_chain,\
+ (test_rtxsender_max_size_packets|test_rtxreceive_data_reconstruction)\\);" all)
+               (string-append "/* " all " */")))
+            #t)))))
     (home-page "http://gstreamer.freedesktop.org/")
     (synopsis
      "Plugins for the GStreamer multimedia library")
-- 
GitLab