From b076a2b5ddf94e2481a4fc79fecf9e7f4879b20d Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Sun, 7 Mar 2010 20:01:36 +0000 Subject: [PATCH] Make python test start_in_inetd function util/k5test.py: Fix incorrect variable used tests/dejagnu/t_inetd.c: Flush stdout after outputting "Ready!" tests/dejagnu/Makefile.in: Always compile t_inetd - even in runtest is not present git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23773 dc483132-0cff-0310-8789-dd5450dbe970 --- src/tests/dejagnu/Makefile.in | 4 +++- src/tests/dejagnu/t_inetd.c | 1 + src/util/k5test.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tests/dejagnu/Makefile.in b/src/tests/dejagnu/Makefile.in index 5d4d37358..d8e753001 100644 --- a/src/tests/dejagnu/Makefile.in +++ b/src/tests/dejagnu/Makefile.in @@ -8,7 +8,9 @@ PROG_RPATH=$(KRB5_LIBDIR) SRCS=$(srcdir)/t_inetd.c -all install:: +all:: t_inetd + +install:: check:: check-runtest-@HAVE_RUNTEST@ diff --git a/src/tests/dejagnu/t_inetd.c b/src/tests/dejagnu/t_inetd.c index 6356a072c..dbee2838d 100644 --- a/src/tests/dejagnu/t_inetd.c +++ b/src/tests/dejagnu/t_inetd.c @@ -112,6 +112,7 @@ main(argc, argv) } printf("Ready!\n"); + fflush(stdout); if ((acc = accept(sock, (struct sockaddr *)&f_inaddr, &namelen)) == -1) { com_err(progname, errno, "accepting"); diff --git a/src/util/k5test.py b/src/util/k5test.py index aa972d742..5205875a7 100644 --- a/src/util/k5test.py +++ b/src/util/k5test.py @@ -791,7 +791,7 @@ class K5Realm(object): def start_in_inetd(self, args, port=None): if not port: port = self.server_port() - inetd_args = [t_inetd, str(ptr)] + args + inetd_args = [t_inetd, str(port)] + args return _start_daemon(inetd_args, self._env_server, 'Ready!') def create_kdb(self): -- 2.26.2