summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. Tilmann Bubeck <t.bubeck@reinform.de>2013-10-09 23:38:15 +0200
committerDr. Tilmann Bubeck <t.bubeck@reinform.de>2013-10-09 23:38:15 +0200
commitf7425f45addce5629d338c051a41ec1a119ea51f (patch)
tree34e48607d29a90f5c96d26d294e2ca28cf10927a
parentc4356e8dc8b9fe039c38104551af93e0583ffbee (diff)
downloadxorg-app-xauth-f7425f45addce5629d338c051a41ec1a119ea51f.tar.gz
Rewrote test_xauth to C to make automake and "make distclean" happy.
-rw-r--r--tests/Makefile.am2
-rwxr-xr-xtests/test_xauth3
-rw-r--r--tests/test_xauth.c6
3 files changed, 8 insertions, 3 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index ade0d24..7ce5dbf 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,6 +1,8 @@
## Process this file with automake to produce Makefile.in
TESTS = test_xauth
+bin_PROGRAMS = test_xauth
+test_xauth_SOURCES = test_xauth.c
diff --git a/tests/test_xauth b/tests/test_xauth
deleted file mode 100755
index be067ac..0000000
--- a/tests/test_xauth
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-exec cmdtest .
diff --git a/tests/test_xauth.c b/tests/test_xauth.c
new file mode 100644
index 0000000..f4265ce
--- /dev/null
+++ b/tests/test_xauth.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+
+int main(int argc, char *argv[])
+{
+ execlp("cmdtest", "cmdtest", ".", NULL);
+}