summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/Makefile.am2
-rw-r--r--tests/test_xauth.c4
2 files changed, 5 insertions, 1 deletions
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 <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
execlp("cmdtest", "cmdtest", ".", NULL);
+ perror("Unable to execute 'cmdtest'. Make sure, that it is installed");
+ exit(1);
}