From 4743624bb51b72fb1c566c2b7b8950cedd922409 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Mon, 25 Jun 2012 14:28:10 +0200 Subject: [PATCH] Have unit test get header from source dir, not installed dir This makes compilation of unit tests work in a build directory other than the source directory. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=678789 --- tests/check/Makefile.am | 4 ++++ tests/check/gst/rtspserver.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am index af5f6c1d21..b32412e7c8 100644 --- a/tests/check/Makefile.am +++ b/tests/check/Makefile.am @@ -41,7 +41,11 @@ LDADD = $(GST_LIBS) $(GST_CHECK_LIBS) $(GST_RTSP_SERVER_LIBS) SUPPRESSIONS = $(top_srcdir)/common/gst.supp +gst_rtspserver_SOURCES = gst/rtspserver.c \ + $(top_srcdir)/gst/rtsp-server/rtsp-server.h + gst_rtspserver_CFLAGS = \ + -I$(top_srcdir)/gst/rtsp-server \ $(GST_PLUGINS_GOOD_CFLAGS) \ $(GST_PLUGINS_BASE_CFLAGS) \ $(GST_BASE_CFLAGS) \ diff --git a/tests/check/gst/rtspserver.c b/tests/check/gst/rtspserver.c index 5d1bdb0694..84d9bfe974 100644 --- a/tests/check/gst/rtspserver.c +++ b/tests/check/gst/rtspserver.c @@ -22,12 +22,13 @@ */ #include -#include #include #include #include +#include "rtsp-server.h" + #define VIDEO_PIPELINE "videotestsrc ! " \ "video/x-raw,width=352,height=288 ! " \ "rtpgstpay name=pay0 pt=96"