01-souptest.patch 1013 B

1234567891011121314151617181920212223242526272829
  1. From 5765db50a19498e3d1576b4279cb2ca984da9dcd Mon Sep 17 00:00:00 2001
  2. From: Edward Hervey <bilboed@bilboed.com>
  3. Date: Tue, 23 Sep 2014 09:47:31 +0200
  4. Subject: check/soup: Temporarily disable G_ENABLE_DIAGNOSTIC
  5. The SOUP_SERVER_PORT property has been deprecated in recent libsoup
  6. versions.
  7. diff --git a/tests/check/elements/souphttpsrc.c b/tests/check/elements/souphttpsrc.c
  8. index 33431ac..dfb682b 100644
  9. --- a/tests/check/elements/souphttpsrc.c
  10. +++ b/tests/check/elements/souphttpsrc.c
  11. @@ -602,7 +602,12 @@ run_server (guint * http_port, guint * https_port)
  12. *http_port = *https_port = 0;
  13. + /* The G_ENABLE_DIAGNOSTIC is temporarily overriden to avoid
  14. + * property deprecation warnings (for the SOUP_SERVER_PORT
  15. + * property) */
  16. + g_setenv ("G_ENABLE_DIAGNOSTIC", "0", TRUE);
  17. server = soup_server_new (SOUP_SERVER_PORT, port, NULL);
  18. + g_setenv ("G_ENABLE_DIAGNOSTIC", "1", TRUE);
  19. if (!server) {
  20. GST_DEBUG ("Unable to bind to server port %u", port);
  21. return FALSE;
  22. --
  23. cgit v0.10.2