From 0da3774b1ee5cfd015e5b664f7781a585255916c Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 28 Jan 2016 17:04:02 -0500 Subject: [PATCH] [tests] Relative includes in tests to fix compilation issues on gcc/Ubuntu --- test/Makefile.am | 4 ++-- test/test_expand.c | 2 +- test/test_numex.c | 2 +- test/test_transliterate.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/Makefile.am b/test/Makefile.am index 49f5daec..43ebc70c 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,9 +1,9 @@ -CFLAGS_BASE = -Wfloat-equal -Wpointer-arith +CFLAGS_BASE = -Wfloat-equal -Wpointer-arith -std=gnu99 CFLAGS_O0 = $(CFLAGS_BASE) -O0 CFLAGS_O1 = $(CFLAGS_BASE) -O1 CFLAGS_O2 = $(CFLAGS_BASE) -O2 CFLAGS_O3 = $(CFLAGS_BASE) -O3 -DEFAULT_INCLUDES = -I.. -I../src +DEFAULT_INCLUDES = -I.. CFLAGS = $(CFLAGS_BASE) diff --git a/test/test_expand.c b/test/test_expand.c index ba379bda..604a5f85 100644 --- a/test/test_expand.c +++ b/test/test_expand.c @@ -4,7 +4,7 @@ #include #include "greatest.h" -#include "libpostal.h" +#include "../src/libpostal.h" SUITE(libpostal_expansion_tests); diff --git a/test/test_numex.c b/test/test_numex.c index d84084f0..96825ce8 100644 --- a/test/test_numex.c +++ b/test/test_numex.c @@ -4,7 +4,7 @@ #include #include "greatest.h" -#include "numex.h" +#include "../src/numex.h" SUITE(libpostal_numex_tests); diff --git a/test/test_transliterate.c b/test/test_transliterate.c index 69601ffb..711bcf4e 100644 --- a/test/test_transliterate.c +++ b/test/test_transliterate.c @@ -4,7 +4,7 @@ #include #include "greatest.h" -#include "transliterate.h" +#include "../src/transliterate.h" SUITE(libpostal_transliteration_tests);