From 3b54dace2ded6c7a1e7577ef13014079923e3af1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 24 Nov 2017 13:41:20 +0100 Subject: [PATCH] tests: include config.h and don't include unix headers In many cases the unistd.h includes weren't actually needed. Preparation for making tests work on Windows with MSVC. --- tests/check/elements/capsfilter.c | 3 +++ tests/check/elements/dataurisrc.c | 5 +++-- tests/check/elements/fakesink.c | 5 +++-- tests/check/elements/fakesrc.c | 5 +++-- tests/check/elements/fdsrc.c | 5 +++++ tests/check/elements/filesink.c | 6 +----- tests/check/elements/filesrc.c | 8 +++----- tests/check/elements/identity.c | 3 +++ tests/check/elements/multiqueue.c | 7 ++++--- tests/check/elements/queue.c | 5 +++-- tests/check/elements/queue2.c | 3 +++ tests/check/elements/selector.c | 3 +++ tests/check/elements/tee.c | 8 +++----- tests/check/elements/valve.c | 3 +++ tests/check/generic/sinks.c | 3 +++ tests/check/generic/states.c | 2 -- tests/check/gst/gst.c | 3 +++ tests/check/gst/gstabi.c | 4 +++- tests/check/gst/gstatomicqueue.c | 3 +++ tests/check/gst/gstbin.c | 3 +++ tests/check/gst/gstbufferlist.c | 3 +++ tests/check/gst/gstbufferpool.c | 3 +++ tests/check/gst/gstbus.c | 3 +++ tests/check/gst/gstcaps.c | 4 +++- tests/check/gst/gstcapsfeatures.c | 3 +++ tests/check/gst/gstchildproxy.c | 3 +++ tests/check/gst/gstclock.c | 3 +++ tests/check/gst/gstcontext.c | 3 +++ tests/check/gst/gstcontroller.c | 2 +- tests/check/gst/gstcpp.cc | 3 +++ tests/check/gst/gstevent.c | 4 +++- tests/check/gst/gstghostpad.c | 3 +++ tests/check/gst/gstindex.c | 3 +++ tests/check/gst/gstinfo.c | 3 +++ tests/check/gst/gstiterator.c | 4 +++- tests/check/gst/gstmessage.c | 3 +++ tests/check/gst/gstminiobject.c | 3 +++ tests/check/gst/gstpad.c | 3 +++ tests/check/gst/gstparamspecs.c | 3 +++ tests/check/gst/gstplugin.c | 3 ++- tests/check/gst/gstpoll.c | 5 ++++- tests/check/gst/gstpreset.c | 8 ++++++++ tests/check/gst/gstprintf.c | 3 +++ tests/check/gst/gstpromise.c | 3 +++ tests/check/gst/gstprotection.c | 3 +++ tests/check/gst/gstquery.c | 5 ++++- tests/check/gst/gstsegment.c | 3 +++ tests/check/gst/gststream.c | 4 +++- tests/check/gst/gststructure.c | 4 +++- tests/check/gst/gstsystemclock.c | 3 +++ tests/check/gst/gsttag.c | 3 +++ tests/check/gst/gsttagsetter.c | 3 +++ tests/check/gst/gsttask.c | 3 +++ tests/check/gst/gsttoc.c | 3 +++ tests/check/gst/gsttocsetter.c | 3 +++ tests/check/gst/gsttracerrecord.c | 3 +++ tests/check/gst/gsturi.c | 3 +++ tests/check/gst/gstvalue.c | 4 +++- tests/check/libs/adapter.c | 3 +++ tests/check/libs/gstharness.c | 3 +++ tests/check/libs/gstnetclientclock.c | 5 +++-- tests/check/libs/gstnettimeprovider.c | 5 +++-- tests/check/libs/gsttestclock.c | 3 +++ 63 files changed, 191 insertions(+), 43 deletions(-) diff --git a/tests/check/elements/capsfilter.c b/tests/check/elements/capsfilter.c index 008fee9..b5c0a7b 100644 --- a/tests/check/elements/capsfilter.c +++ b/tests/check/elements/capsfilter.c @@ -16,6 +16,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/elements/dataurisrc.c b/tests/check/elements/dataurisrc.c index 888c626..decbe61 100644 --- a/tests/check/elements/dataurisrc.c +++ b/tests/check/elements/dataurisrc.c @@ -17,8 +17,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - -#include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/elements/fakesink.c b/tests/check/elements/fakesink.c index 0f811b1..b8e7321 100644 --- a/tests/check/elements/fakesink.c +++ b/tests/check/elements/fakesink.c @@ -21,8 +21,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - -#include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/elements/fakesrc.c b/tests/check/elements/fakesrc.c index 55605f7..8de2c7c 100644 --- a/tests/check/elements/fakesrc.c +++ b/tests/check/elements/fakesrc.c @@ -19,8 +19,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - -#include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/elements/fdsrc.c b/tests/check/elements/fdsrc.c index ffe6194..8e1c421 100644 --- a/tests/check/elements/fdsrc.c +++ b/tests/check/elements/fdsrc.c @@ -19,8 +19,13 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#ifdef HAVE_UNISTD_H #include +#endif #include #include #include diff --git a/tests/check/elements/filesink.c b/tests/check/elements/filesink.c index cc42c8a..430085f 100644 --- a/tests/check/elements/filesink.c +++ b/tests/check/elements/filesink.c @@ -28,10 +28,6 @@ #include #include -#ifdef HAVE_UNISTD_H -#include /* for close() */ -#endif - #include static GstPad *mysrcpad; @@ -205,7 +201,7 @@ create_temporary_file (void) return NULL; } /* don't want the file, just a filename (hence silly, see above) */ - close (fd); + g_close (fd, NULL); g_remove (tmp_fn); return tmp_fn; diff --git a/tests/check/elements/filesrc.c b/tests/check/elements/filesrc.c index d60f18f..fd42284 100644 --- a/tests/check/elements/filesrc.c +++ b/tests/check/elements/filesrc.c @@ -17,11 +17,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - -#include -#include -#include -#include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/elements/identity.c b/tests/check/elements/identity.c index bf66776..63f2f0b 100644 --- a/tests/check/elements/identity.c +++ b/tests/check/elements/identity.c @@ -20,6 +20,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/elements/multiqueue.c b/tests/check/elements/multiqueue.c index e99f555..edc5144 100644 --- a/tests/check/elements/multiqueue.c +++ b/tests/check/elements/multiqueue.c @@ -17,8 +17,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - -#include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include @@ -1339,7 +1340,7 @@ GST_START_TEST (test_limit_changes) /* Wait until we are actually blocking... we unfortunately can't * know that without sleeping */ - sleep (1); + g_usleep (G_USEC_PER_SEC); g_object_set (mq, "max-size-buffers", (guint) 3, NULL); g_thread_join (thread); diff --git a/tests/check/elements/queue.c b/tests/check/elements/queue.c index 8619909..50f2896 100644 --- a/tests/check/elements/queue.c +++ b/tests/check/elements/queue.c @@ -19,8 +19,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - -#include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/elements/queue2.c b/tests/check/elements/queue2.c index 7a4fc5c..5707d1c 100644 --- a/tests/check/elements/queue2.c +++ b/tests/check/elements/queue2.c @@ -17,6 +17,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/elements/selector.c b/tests/check/elements/selector.c index c7320e6..ac4f3ec 100644 --- a/tests/check/elements/selector.c +++ b/tests/check/elements/selector.c @@ -18,6 +18,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/elements/tee.c b/tests/check/elements/tee.c index 80c9e88..acee40c 100644 --- a/tests/check/elements/tee.c +++ b/tests/check/elements/tee.c @@ -21,11 +21,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - -#include -#include -#include -#include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/elements/valve.c b/tests/check/elements/valve.c index d031481..e6d7f37 100644 --- a/tests/check/elements/valve.c +++ b/tests/check/elements/valve.c @@ -21,6 +21,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/generic/sinks.c b/tests/check/generic/sinks.c index 2d60611..0a0e95d 100644 --- a/tests/check/generic/sinks.c +++ b/tests/check/generic/sinks.c @@ -19,6 +19,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/generic/states.c b/tests/check/generic/states.c index 8085877..7f95686 100644 --- a/tests/check/generic/states.c +++ b/tests/check/generic/states.c @@ -24,8 +24,6 @@ # include "config.h" #endif -#include - #include static GList *elements = NULL; diff --git a/tests/check/gst/gst.c b/tests/check/gst/gst.c index bbe953d..fc82763 100644 --- a/tests/check/gst/gst.c +++ b/tests/check/gst/gst.c @@ -18,6 +18,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/gst/gstabi.c b/tests/check/gst/gstabi.c index 2356cb1..72d1f33 100644 --- a/tests/check/gst/gstabi.c +++ b/tests/check/gst/gstabi.c @@ -19,7 +19,9 @@ * Boston, MA 02110-1301, USA. */ -#include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #ifdef HAVE_CPU_I386 diff --git a/tests/check/gst/gstatomicqueue.c b/tests/check/gst/gstatomicqueue.c index 4262c41..a516421 100644 --- a/tests/check/gst/gstatomicqueue.c +++ b/tests/check/gst/gstatomicqueue.c @@ -16,6 +16,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/gst/gstbin.c b/tests/check/gst/gstbin.c index 9ac461e..21e6043 100644 --- a/tests/check/gst/gstbin.c +++ b/tests/check/gst/gstbin.c @@ -19,6 +19,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/gst/gstbufferlist.c b/tests/check/gst/gstbufferlist.c index a04ebe5..54e7257 100644 --- a/tests/check/gst/gstbufferlist.c +++ b/tests/check/gst/gstbufferlist.c @@ -20,6 +20,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/gst/gstbufferpool.c b/tests/check/gst/gstbufferpool.c index 8b05324..8b9b0b3 100644 --- a/tests/check/gst/gstbufferpool.c +++ b/tests/check/gst/gstbufferpool.c @@ -18,6 +18,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gstbus.c b/tests/check/gst/gstbus.c index f0308c6..f8d6cb0 100644 --- a/tests/check/gst/gstbus.c +++ b/tests/check/gst/gstbus.c @@ -17,6 +17,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gstcaps.c b/tests/check/gst/gstcaps.c index 0809d7a..a85a033 100644 --- a/tests/check/gst/gstcaps.c +++ b/tests/check/gst/gstcaps.c @@ -19,7 +19,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/gst/gstcapsfeatures.c b/tests/check/gst/gstcapsfeatures.c index 5f76aa7..9af126f 100644 --- a/tests/check/gst/gstcapsfeatures.c +++ b/tests/check/gst/gstcapsfeatures.c @@ -19,6 +19,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/gst/gstchildproxy.c b/tests/check/gst/gstchildproxy.c index 35c9d37..47ce459 100644 --- a/tests/check/gst/gstchildproxy.c +++ b/tests/check/gst/gstchildproxy.c @@ -18,6 +18,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gstclock.c b/tests/check/gst/gstclock.c index 3bf1db2..92446a5 100644 --- a/tests/check/gst/gstclock.c +++ b/tests/check/gst/gstclock.c @@ -16,6 +16,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gstcontext.c b/tests/check/gst/gstcontext.c index 63d8b79..88441ae 100644 --- a/tests/check/gst/gstcontext.c +++ b/tests/check/gst/gstcontext.c @@ -20,6 +20,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gstcontroller.c b/tests/check/gst/gstcontroller.c index 092a63d..9d81c5d 100644 --- a/tests/check/gst/gstcontroller.c +++ b/tests/check/gst/gstcontroller.c @@ -24,10 +24,10 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif + #include #include - /* local test element */ enum diff --git a/tests/check/gst/gstcpp.cc b/tests/check/gst/gstcpp.cc index a96667a..eb58be2 100644 --- a/tests/check/gst/gstcpp.cc +++ b/tests/check/gst/gstcpp.cc @@ -16,6 +16,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/gst/gstevent.c b/tests/check/gst/gstevent.c index 5e93b5d..d124c91 100644 --- a/tests/check/gst/gstevent.c +++ b/tests/check/gst/gstevent.c @@ -18,7 +18,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gstghostpad.c b/tests/check/gst/gstghostpad.c index 6c6f518..087d034 100644 --- a/tests/check/gst/gstghostpad.c +++ b/tests/check/gst/gstghostpad.c @@ -18,6 +18,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/gst/gstindex.c b/tests/check/gst/gstindex.c index 92b1882..6b20b7a 100644 --- a/tests/check/gst/gstindex.c +++ b/tests/check/gst/gstindex.c @@ -16,6 +16,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gstinfo.c b/tests/check/gst/gstinfo.c index 763a223..6b4249d 100644 --- a/tests/check/gst/gstinfo.c +++ b/tests/check/gst/gstinfo.c @@ -19,6 +19,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gstiterator.c b/tests/check/gst/gstiterator.c index 663a2d2..9e989f8 100644 --- a/tests/check/gst/gstiterator.c +++ b/tests/check/gst/gstiterator.c @@ -18,7 +18,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gstmessage.c b/tests/check/gst/gstmessage.c index 9c8c27a..461e280 100644 --- a/tests/check/gst/gstmessage.c +++ b/tests/check/gst/gstmessage.c @@ -19,6 +19,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gstminiobject.c b/tests/check/gst/gstminiobject.c index d29438e..e2cc14e 100644 --- a/tests/check/gst/gstminiobject.c +++ b/tests/check/gst/gstminiobject.c @@ -20,6 +20,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gstpad.c b/tests/check/gst/gstpad.c index f5317c9..b9def0f 100644 --- a/tests/check/gst/gstpad.c +++ b/tests/check/gst/gstpad.c @@ -18,6 +18,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gstparamspecs.c b/tests/check/gst/gstparamspecs.c index ad2e99b..696c62b 100644 --- a/tests/check/gst/gstparamspecs.c +++ b/tests/check/gst/gstparamspecs.c @@ -16,6 +16,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/gst/gstplugin.c b/tests/check/gst/gstplugin.c index cb4f17d..4550bca 100644 --- a/tests/check/gst/gstplugin.c +++ b/tests/check/gst/gstplugin.c @@ -20,8 +20,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include diff --git a/tests/check/gst/gstpoll.c b/tests/check/gst/gstpoll.c index 2fd756b..78e73ef 100644 --- a/tests/check/gst/gstpoll.c +++ b/tests/check/gst/gstpoll.c @@ -19,14 +19,17 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif -#include #include #ifdef G_OS_WIN32 #include #include #else +#include #include #endif diff --git a/tests/check/gst/gstpreset.c b/tests/check/gst/gstpreset.c index 82fca39..dfa0c4e 100644 --- a/tests/check/gst/gstpreset.c +++ b/tests/check/gst/gstpreset.c @@ -28,7 +28,9 @@ #include #include +#ifdef HAVE_UNISTD_H #include +#endif static GType gst_preset_test_get_type (void); @@ -284,7 +286,13 @@ gst_preset_suite (void) /* check if we can create presets */ gst_dir = g_build_filename (g_get_user_data_dir (), "gstreamer-" GST_API_VERSION, NULL); + +#ifdef G_OS_WIN32 + can_write = FALSE; /* FIXME: test properly using win32 API */ +#else can_write = (g_access (gst_dir, R_OK | W_OK | X_OK) == 0); +#endif + g_free (gst_dir); suite_add_tcase (s, tc); diff --git a/tests/check/gst/gstprintf.c b/tests/check/gst/gstprintf.c index 7fca649..3e01df0 100644 --- a/tests/check/gst/gstprintf.c +++ b/tests/check/gst/gstprintf.c @@ -16,6 +16,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gstpromise.c b/tests/check/gst/gstpromise.c index af06f24..7653399 100644 --- a/tests/check/gst/gstpromise.c +++ b/tests/check/gst/gstpromise.c @@ -19,6 +19,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gstprotection.c b/tests/check/gst/gstprotection.c index b5dae25..1669c81 100644 --- a/tests/check/gst/gstprotection.c +++ b/tests/check/gst/gstprotection.c @@ -19,6 +19,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/gst/gstquery.c b/tests/check/gst/gstquery.c index efd9898..547c622 100644 --- a/tests/check/gst/gstquery.c +++ b/tests/check/gst/gstquery.c @@ -15,9 +15,12 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include + GST_START_TEST (create_queries) { GstQuery *query; diff --git a/tests/check/gst/gstsegment.c b/tests/check/gst/gstsegment.c index d451e3d..bba31ce 100644 --- a/tests/check/gst/gstsegment.c +++ b/tests/check/gst/gstsegment.c @@ -19,6 +19,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gststream.c b/tests/check/gst/gststream.c index aa09b2b..4ff15d0 100644 --- a/tests/check/gst/gststream.c +++ b/tests/check/gst/gststream.c @@ -18,7 +18,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/gst/gststructure.c b/tests/check/gst/gststructure.c index 7d3f2b4..cce6665 100644 --- a/tests/check/gst/gststructure.c +++ b/tests/check/gst/gststructure.c @@ -18,7 +18,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/gst/gstsystemclock.c b/tests/check/gst/gstsystemclock.c index b68d629..a37bb15 100644 --- a/tests/check/gst/gstsystemclock.c +++ b/tests/check/gst/gstsystemclock.c @@ -18,6 +18,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gsttag.c b/tests/check/gst/gsttag.c index 7a5e5ca..d330cb3 100644 --- a/tests/check/gst/gsttag.c +++ b/tests/check/gst/gsttag.c @@ -16,6 +16,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gsttagsetter.c b/tests/check/gst/gsttagsetter.c index 11c16b8..10f68fe 100644 --- a/tests/check/gst/gsttagsetter.c +++ b/tests/check/gst/gsttagsetter.c @@ -16,6 +16,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/gst/gsttask.c b/tests/check/gst/gsttask.c index db79558..e18a508 100644 --- a/tests/check/gst/gsttask.c +++ b/tests/check/gst/gsttask.c @@ -18,6 +18,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gsttoc.c b/tests/check/gst/gsttoc.c index fc5d07b..4abe3ad 100644 --- a/tests/check/gst/gsttoc.c +++ b/tests/check/gst/gsttoc.c @@ -28,6 +28,9 @@ * -chapter2 | * -subchapter1 */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gsttocsetter.c b/tests/check/gst/gsttocsetter.c index 047c1e9..f15e198 100644 --- a/tests/check/gst/gsttocsetter.c +++ b/tests/check/gst/gsttocsetter.c @@ -16,6 +16,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/gst/gsttracerrecord.c b/tests/check/gst/gsttracerrecord.c index 712d6f7..6dd629a 100644 --- a/tests/check/gst/gsttracerrecord.c +++ b/tests/check/gst/gsttracerrecord.c @@ -19,6 +19,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/gst/gsturi.c b/tests/check/gst/gsturi.c index cd23be4..3f753f6 100644 --- a/tests/check/gst/gsturi.c +++ b/tests/check/gst/gsturi.c @@ -17,6 +17,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/gst/gstvalue.c b/tests/check/gst/gstvalue.c index 4834383..35bd23c 100644 --- a/tests/check/gst/gstvalue.c +++ b/tests/check/gst/gstvalue.c @@ -19,7 +19,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ - +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #define GLIB_DISABLE_DEPRECATION_WARNINGS #include diff --git a/tests/check/libs/adapter.c b/tests/check/libs/adapter.c index 9bae8e9..cedb966 100644 --- a/tests/check/libs/adapter.c +++ b/tests/check/libs/adapter.c @@ -19,6 +19,9 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include diff --git a/tests/check/libs/gstharness.c b/tests/check/libs/gstharness.c index 7cd003a..9edbaee 100644 --- a/tests/check/libs/gstharness.c +++ b/tests/check/libs/gstharness.c @@ -18,6 +18,9 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include diff --git a/tests/check/libs/gstnetclientclock.c b/tests/check/libs/gstnetclientclock.c index 1434dcb..06ce006 100644 --- a/tests/check/libs/gstnetclientclock.c +++ b/tests/check/libs/gstnetclientclock.c @@ -18,12 +18,13 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include -#include - GST_START_TEST (test_instantiation) { GstClock *client, *local; diff --git a/tests/check/libs/gstnettimeprovider.c b/tests/check/libs/gstnettimeprovider.c index 3ba2bde..ac5e94d 100644 --- a/tests/check/libs/gstnettimeprovider.c +++ b/tests/check/libs/gstnettimeprovider.c @@ -18,12 +18,13 @@ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, * Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include -#include - GST_START_TEST (test_refcounts) { GstNetTimeProvider *ntp; diff --git a/tests/check/libs/gsttestclock.c b/tests/check/libs/gsttestclock.c index 7af1168..e3b86fd 100644 --- a/tests/check/libs/gsttestclock.c +++ b/tests/check/libs/gsttestclock.c @@ -19,6 +19,9 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include -- 2.7.4