From 2eb4ef59d7c27ac7972954d406ad9c2fa8123672 Mon Sep 17 00:00:00 2001 From: "Dr. Tilmann Bubeck" Date: Sun, 13 Oct 2013 17:57:49 +0200 Subject: * Do not install test_xauth during "make install" as it is only used during "make check". * perror out, if test_xauth does not find "cmdtest". --- tests/Makefile.am | 2 +- tests/test_xauth.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 7ce5dbf..53c9953 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in TESTS = test_xauth -bin_PROGRAMS = test_xauth +check_PROGRAMS = test_xauth test_xauth_SOURCES = test_xauth.c diff --git a/tests/test_xauth.c b/tests/test_xauth.c index f4265ce..8e9c2a2 100644 --- a/tests/test_xauth.c +++ b/tests/test_xauth.c @@ -1,6 +1,10 @@ +#include +#include #include int main(int argc, char *argv[]) { execlp("cmdtest", "cmdtest", ".", NULL); + perror("Unable to execute 'cmdtest'. Make sure, that it is installed"); + exit(1); } -- cgit v1.2.3