[ltt-dev] [UST commit] Fix make check includes

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Fri May 20 15:28:55 EDT 2011


commit 3fa2687d72239b458cd1d3753842402cda1d1b90
Author: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
Date:   Fri May 20 15:29:42 2011 -0400

    Fix make check includes
    
    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>

diff --git a/tests/simple_include/simple_include.c b/tests/simple_include/simple_include.c
index 75c6864..ccf14ce 100644
--- a/tests/simple_include/simple_include.c
+++ b/tests/simple_include/simple_include.c
@@ -15,6 +15,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#include <ust/ust.h>
+#include <ust/tracepoint.h>
+#include <ust/marker.h>
 
 int main () { return 0; }
diff --git a/tests/snprintf/Makefile.am b/tests/snprintf/Makefile.am
index 809531b..734ab18 100644
--- a/tests/snprintf/Makefile.am
+++ b/tests/snprintf/Makefile.am
@@ -1,3 +1,5 @@
+AM_CPPFLAGS = -I$(top_srcdir)/include
+
 check_PROGRAMS = prog
 prog_SOURCES = prog.c
 prog_LDADD = $(top_builddir)/snprintf/libustsnprintf.la
diff --git a/tests/snprintf/prog.c b/tests/snprintf/prog.c
index ac888b5..dd0b04f 100644
--- a/tests/snprintf/prog.c
+++ b/tests/snprintf/prog.c
@@ -17,11 +17,11 @@
 
 #include <stdio.h>
 #include <string.h>
+#include "ust_snprintf.h"
 
 int main()
 {
 	char buf[100];
-
 	char *expected;
 
 	expected = "header 9999, hello, 005, '    9'";

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com




More information about the lttng-dev mailing list