t-forward-control on slow machines

Christian Weisgerber naddy at mips.inka.de
Mon Nov 18 09:36:02 EST 2013


On how slow a machine do we want the regression tests, specifically
forward-control.sh, to still work?

On my Alpha PC164 (21164-500, ~1997), the forward-control test
produces erratic results.  It eventually dawned on me that this is
just a timing problem.  Bumping the timeouts from 5 to 10s makes
it run reliably.  But then I'm sure Miod has even slower machines,
so I don't know what we want to accommodate.

Index: forward-control.sh
===================================================================
RCS file: /cvs/src/regress/usr.bin/ssh/forward-control.sh,v
retrieving revision 1.1
diff -u -p -r1.1 forward-control.sh
--- forward-control.sh	2 Dec 2012 20:47:48 -0000	1.1
+++ forward-control.sh	17 Nov 2013 21:57:57 -0000
@@ -14,7 +14,7 @@ wait_for_file_to_appear() {
 	while test ! -e $_path ; do
 		test $_n -eq 1 && trace "waiting for $_path to appear"
 		_n=`expr $_n + 1`
-		test $_n -ge 5 && return 1
+		test $_n -ge 10 && return 1
 		sleep 1
 	done
 	return 0
@@ -26,7 +26,7 @@ wait_for_process_to_exit() {
 	while kill -0 $_pid 2>/dev/null ; do
 		test $_n -eq 1 && trace "waiting for $_pid to exit"
 		_n=`expr $_n + 1`
-		test $_n -ge 5 && return 1
+		test $_n -ge 10 && return 1
 		sleep 1
 	done
 	return 0
-- 
Christian "naddy" Weisgerber                          naddy at mips.inka.de


More information about the openssh-unix-dev mailing list