summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1995-05-02 01:36:14 +0000
committerTheodore Tso <tytso@mit.edu>1995-05-02 01:36:14 +0000
commit33cebcbc71d1bfd577008ec521c349f4ffd51282 (patch)
tree2f8d2602a919ddd5e4d5ad33a4d4289aa2e9b1d1 /src
parent258d64ceda6411d8c9fd623359816d2f7cadbd52 (diff)
downloadkrb5-33cebcbc71d1bfd577008ec521c349f4ffd51282.tar.gz
krb5-33cebcbc71d1bfd577008ec521c349f4ffd51282.tar.xz
krb5-33cebcbc71d1bfd577008ec521c349f4ffd51282.zip
Use tests/resolve/resolve to get the fully qualified domain name of
the local host. Needed for systems where gethostname() doesn't return the FQDN. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5680 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/tests/dejagnu/config/ChangeLog7
-rw-r--r--src/tests/dejagnu/config/default.exp7
2 files changed, 13 insertions, 1 deletions
diff --git a/src/tests/dejagnu/config/ChangeLog b/src/tests/dejagnu/config/ChangeLog
index c5e92385e7..1f20473e9d 100644
--- a/src/tests/dejagnu/config/ChangeLog
+++ b/src/tests/dejagnu/config/ChangeLog
@@ -1,3 +1,10 @@
+Mon May 1 21:32:57 1995 Theodore Y. Ts'o (tytso@dcl)
+
+ * default.exp: (get_hostname): Use tests/resolve/resolve to get
+ the fully qualified domain name of the local host.
+ Needed for systems where gethostname() doesn't return the
+ FQDN.
+
Thu Apr 27 00:22:30 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* default.exp: KRB5KDC: add -n to don't fork. Set up krb5.conf
diff --git a/src/tests/dejagnu/config/default.exp b/src/tests/dejagnu/config/default.exp
index 4d6301f37c..8a599523fe 100644
--- a/src/tests/dejagnu/config/default.exp
+++ b/src/tests/dejagnu/config/default.exp
@@ -91,6 +91,10 @@ if ![info exists KINIT] {
set KINIT [findfile $objdir/../../clients/kinit/kinit]
}
+if ![info exists RESOLVE] {
+ set RESOLVE [findfile $objdir/../resolve/resolve]
+}
+
# We use a couple of variables to hold shell prompts which may be
# overridden by the user.
@@ -157,6 +161,7 @@ proc check_exit_status { testname } {
# of the name). Returns 1 on success, 0 on failure.
proc get_hostname { } {
+ global RESOLVE
global hostname
global localhostname
@@ -164,7 +169,7 @@ proc get_hostname { } {
return 1
}
- catch "exec hostname >tmpdir/hostname" exec_output
+ catch "exec $RESOLVE -q >tmpdir/hostname" exec_output
if ![string match "" $exec_output] {
send_log "$exec_output\n"
verbose $exec_output