All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] sched_cli_serv: Wait a bit before trying to connect
@ 2009-08-28  9:25 Geert Uytterhoeven
  2009-08-30 17:37 ` Subrata Modak
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2009-08-28  9:25 UTC (permalink / raw)
  To: Linux Test Project

The sched_cli_serv test launches the server in the background and expects
the client to be able to connect to it immediately. Depending on (earlier)
system load, that may fail.
Wait a bit before starting the client.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
---
 testcases/kernel/sched/clisrv/run_sched_cliserv.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/testcases/kernel/sched/clisrv/run_sched_cliserv.sh b/testcases/kernel/sched/clisrv/run_sched_cliserv.sh
index 68176c4..f063ebd 100755
--- a/testcases/kernel/sched/clisrv/run_sched_cliserv.sh
+++ b/testcases/kernel/sched/clisrv/run_sched_cliserv.sh
@@ -1,6 +1,7 @@
 #!/bin/sh -x
 
 pthserv &
+sleep 5
 pthcli 127.0.0.1 $LTPROOT/testcases/bin/data
 clientCode=$?
 killall pthserv
-- 
1.6.2.4

With kind regards,

Geert Uytterhoeven
Software Architect
Techsoft Centre

Technology and Software Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone:    +32 (0)2 700 8453
Fax:      +32 (0)2 700 8622
E-mail:   Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH] sched_cli_serv: Wait a bit before trying to connect
  2009-08-28  9:25 [LTP] [PATCH] sched_cli_serv: Wait a bit before trying to connect Geert Uytterhoeven
@ 2009-08-30 17:37 ` Subrata Modak
  0 siblings, 0 replies; 2+ messages in thread
From: Subrata Modak @ 2009-08-30 17:37 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Linux Test Project

On Fri, 2009-08-28 at 11:25 +0200, Geert Uytterhoeven wrote: 
> The sched_cli_serv test launches the server in the background and expects
> the client to be able to connect to it immediately. Depending on (earlier)
> system load, that may fail.
> Wait a bit before starting the client.
> 
> Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>

Ok.

Regards--
Subrata

> ---
>  testcases/kernel/sched/clisrv/run_sched_cliserv.sh |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/testcases/kernel/sched/clisrv/run_sched_cliserv.sh b/testcases/kernel/sched/clisrv/run_sched_cliserv.sh
> index 68176c4..f063ebd 100755
> --- a/testcases/kernel/sched/clisrv/run_sched_cliserv.sh
> +++ b/testcases/kernel/sched/clisrv/run_sched_cliserv.sh
> @@ -1,6 +1,7 @@
>  #!/bin/sh -x
>  
>  pthserv &
> +sleep 5
>  pthcli 127.0.0.1 $LTPROOT/testcases/bin/data
>  clientCode=$?
>  killall pthserv


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-30 17:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-28  9:25 [LTP] [PATCH] sched_cli_serv: Wait a bit before trying to connect Geert Uytterhoeven
2009-08-30 17:37 ` Subrata Modak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.