[so] test 6

florin chiculita the_linux_terrorist at yahoo.com
Fri Nov 16 22:05:05 EET 2007


desi ma aflu pe mailing list-ul asta dintr-o pura intamplare,
imi permit sa-ti dau o mica idee:

vezi in _test/test6.sh exact unde se intampla faza naspa.
ai acolo o chestie de genul:
------------------------------------------
./client p | perl _test/tree.pl _test/test6_1.in
temp=$?
./client s 2000 p | perl _test/tree.pl _test/test6_2.in
if [ $? -eq 0 -a $temp -eq 0 ] 
------------------------------------------

vezi exact ce genereaza "picarea" testului... pentru asta fa urmatoarea modificare: 
------------------------------------------
./client p | perl _test/tree.pl _test/test6_1.in
#temp=$?
#./client s 2000 p | perl _test/tree.pl _test/test6_2.in
#if [ $? -eq 0 -a $temp -eq 0 ] 
if [ $? -eq 0 ]
------------------------------------------
asta ca sa fii sigur ca e de la sleep-ul ala...

sper sa-ti fie de folos,
Florin.

Marius Nicolae <mariusn007 at gmail.com> wrote: On Nov 16, 2007 9:26 PM, Lucian Adrian Grijincu
 wrote:
> On Nov 16, 2007 9:23 PM, Marius Nicolae  wrote:
> > Sau asa:
> > sleep(ms/1000);
> > usleep(1000 * ms%1000);
> >
> >
> Please elaborate on that :)

usleep(ms%1000*1000) actually :)

>
> > On Nov 16, 2007 9:15 PM, Take Ceara  wrote:
> > > nanosleep e POSIX si-ti rezolva toate problemele...
> > >
> > >
> > >
>
> --
> Lucian
>
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
_______________________________________________
so mailing list
so at cursuri.cs.pub.ro
http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so


       
---------------------------------
Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20071116/7889634a/attachment.html


More information about the so mailing list