svn rev #23773: trunk/src/ tests/dejagnu/ util/

epeisach@MIT.EDU epeisach at MIT.EDU
Sun Mar 7 15:01:36 EST 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=23773
Commit By: epeisach
Log Message:
subject: 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




Changed Files:
U   trunk/src/tests/dejagnu/Makefile.in
U   trunk/src/tests/dejagnu/t_inetd.c
U   trunk/src/util/k5test.py
Modified: trunk/src/tests/dejagnu/Makefile.in
===================================================================
--- trunk/src/tests/dejagnu/Makefile.in	2010-03-05 20:35:26 UTC (rev 23772)
+++ trunk/src/tests/dejagnu/Makefile.in	2010-03-07 20:01:36 UTC (rev 23773)
@@ -8,8 +8,10 @@
 
 SRCS=$(srcdir)/t_inetd.c
 
-all install::
+all:: t_inetd
 
+install::
+
 check:: check-runtest- at HAVE_RUNTEST@
 
 check-runtest-no::

Modified: trunk/src/tests/dejagnu/t_inetd.c
===================================================================
--- trunk/src/tests/dejagnu/t_inetd.c	2010-03-05 20:35:26 UTC (rev 23772)
+++ trunk/src/tests/dejagnu/t_inetd.c	2010-03-07 20:01:36 UTC (rev 23773)
@@ -112,6 +112,7 @@
     }
 
     printf("Ready!\n");
+    fflush(stdout);
     if ((acc = accept(sock, (struct sockaddr *)&f_inaddr,
                       &namelen)) == -1) {
         com_err(progname, errno, "accepting");

Modified: trunk/src/util/k5test.py
===================================================================
--- trunk/src/util/k5test.py	2010-03-05 20:35:26 UTC (rev 23772)
+++ trunk/src/util/k5test.py	2010-03-07 20:01:36 UTC (rev 23773)
@@ -791,7 +791,7 @@
     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):




More information about the cvs-krb5 mailing list