From 7c2839a3d5355e9e081ffe2b18ef1390755efed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 29 May 2005 18:21:54 +0000 Subject: [PATCH] XXX don't run the test unless the machine is in kth.se or su.se because it depends on local resolver configuration. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15283 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/name-45-test.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/krb5/name-45-test.c b/lib/krb5/name-45-test.c index dbb09bae6..122afa8ba 100644 --- a/lib/krb5/name-45-test.c +++ b/lib/krb5/name-45-test.c @@ -153,8 +153,16 @@ main(int argc, char **argv) struct testcase *t; krb5_context context; krb5_error_code ret; + char hostname[1024]; int val = 0; + setprogname(argv[0]); + + gethostname(hostname, sizeof(hostname)); + if (strstr(hostname, "kth.se") == NULL && + strstr(hostname, "su.se") == NULL) + return 0; + for (t = tests; t->v4_name; ++t) { krb5_principal princ; int i;