diff options
author | Dr. Tilmann Bubeck <t.bubeck@reinform.de> | 2013-10-13 17:57:49 +0200 |
---|---|---|
committer | Dr. Tilmann Bubeck <t.bubeck@reinform.de> | 2013-10-13 17:57:49 +0200 |
commit | 2eb4ef59d7c27ac7972954d406ad9c2fa8123672 (patch) | |
tree | 70bf5054c07fe5db5095073d7d1af69e5fd93be8 | |
parent | 4de4a231f3a718d2af0d2b00443c803f8bddfbc5 (diff) |
* 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".
-rw-r--r-- | tests/Makefile.am | 2 | ||||
-rw-r--r-- | tests/test_xauth.c | 4 |
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); } |