summaryrefslogtreecommitdiff
path: root/tests/modeprint
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-12-09 18:37:39 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2015-12-18 17:43:40 +0000
commit1ec3c44bdd38051d870f64d0b2cc7dbd59760386 (patch)
tree16736bbd48e66bee6592f10a8ec358d57d51e141 /tests/modeprint
parent15d90ef3504128a276923db840af1410ca255647 (diff)
tests: Split helpers into library
Some of the helpers, such as the pattern drawing helpers or the format lookup helpers, have potential to be reused. Move them into a separate library to make it easier to share them. Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'tests/modeprint')
-rw-r--r--tests/modeprint/Makefile.am1
-rw-r--r--tests/modeprint/modeprint.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/modeprint/Makefile.am b/tests/modeprint/Makefile.am
index 895805fd..601dbc96 100644
--- a/tests/modeprint/Makefile.am
+++ b/tests/modeprint/Makefile.am
@@ -1,6 +1,7 @@
AM_CFLAGS = \
$(WARN_CFLAGS)\
-I$(top_srcdir)/include/drm \
+ -I$(top_srcdir)/tests \
-I$(top_srcdir)
if HAVE_INSTALL_TESTS
diff --git a/tests/modeprint/modeprint.c b/tests/modeprint/modeprint.c
index 5e953f71..0d854103 100644
--- a/tests/modeprint/modeprint.c
+++ b/tests/modeprint/modeprint.c
@@ -41,7 +41,7 @@
#include "xf86drm.h"
#include "xf86drmMode.h"
-#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
+#include "util/common.h"
int current;
int connectors;