check: Apply GStreamer-specific patches
authorSebastian Rasmussen <sebras@hotmail.com>
Sat, 15 Nov 2014 12:26:47 +0000 (13:26 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 6 Dec 2014 16:48:25 +0000 (17:48 +0100)
commit85c8b5d2c43be4888b12d31832823bf1cfc68c44
tree74c936a3aee797ca60cc4145a6ecafc9040a20d3
parentf1df7aba8fa0584ffb294a0e38e6c84596f177a5
check: Apply GStreamer-specific patches

Reintroduced patches:

 * Make sure that fail_if(1) actually fails
   from commit 9f99d056a263e71a5e6181224829def906cf0226

New patches due to updated libcheck (based on 0.9.14):

 * Checks in m4/check-checks.m4 to cater for new dependencies
 * Conditional compile-time compat POSIX fallbacks for libcheck
 * Avoid relative paths for libcheck header files
 * Make timer_create() usage depend on posix timers, not librt
 * Rely on default AX_PTHREAD behavior to allow HAVE_PTHREAD to be used
   when checking for types and functions (like clock_gettime())
 * Avoid double declaration of clock_gettime() when availabe outside of
   librt by making compat clock_gettime() declaration conditional
 * check 0.9.9 renamed _fail_unless() and 0.9.12 later renamed it again
   to _ck_assert_failed(), so ASSERT_{CRITICAL,WARNING}() now calls this
   function
 * Remove libcheck fallback infrastructure for malloc(), realloc(),
   gettimeofday() and snprintf() since either they appear to be
   available or they introduce even more dependencies.

The result is an embedded check in gstreamer that has been tested by
running check tests in core, -base, -good, -bad, -ugly and rtsp-server
on Linux, OSX and Windows.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=727826
16 files changed:
configure.ac
libs/gst/check/gstcheck.h
libs/gst/check/libcheck/Makefile.am
libs/gst/check/libcheck/check.c
libs/gst/check/libcheck/check.h.in
libs/gst/check/libcheck/check_error.c
libs/gst/check/libcheck/check_error.h
libs/gst/check/libcheck/check_list.c
libs/gst/check/libcheck/check_log.c
libs/gst/check/libcheck/check_msg.c
libs/gst/check/libcheck/check_pack.c
libs/gst/check/libcheck/check_print.c
libs/gst/check/libcheck/check_run.c
libs/gst/check/libcheck/check_str.c
libs/gst/check/libcheck/libcompat.h
m4/check-checks.m4