[pso] tema5 teste linux
ovidiu popa
ov.popa at gmail.com
Sun Jun 7 14:50:55 EEST 2009
Salut,
Am terminat si eu tema si am aceeasi probleme. La mine pe calculator merg
ultimele teste de number of rules. Pe site nu merg.
A rezolvat cineva problema? Any suggestions?
2009/6/7 Adriana Draghici <adriana008 at gmail.com>
>
> Salut,
>
> Si mie mi s-a intamplat acelasi lucru, acele 3 teste nu merg, desi pe calc
> meu merg, am urmarit comportamentul programului si se intra in handlerul de
> timer si se scot regulile expirate.
>
> Acum am o dilema:
> Sa las programul facut corect, sau sa il fac incorect si sa imi mearga
> testele de pe site? Incorect insemna comentarea liniei in care copiez
> regulile din kernel space in userspace.
>
> Aveti vreo sugestie ?
>
> Adriana
>
>
>
> 2009/6/3 Szeke <aaa.szeke at gmail.com>
>
>> Iti dai seama ca nu putem lasa asa :). Inca incerc sa imi dau seama
>> de ce se comporta asa. O problema
>> de sincronizare probabil.
>>
>> Adriana
>>
>> 2009/6/3 Bogdan Tenea <tenea.bogdan at gmail.com>
>>
>> In urma sugestiei Adrianei, am scos partea efectiva de copiere a
>>> bufferului cu reguli si am intors doar numarul lor si a trecut toate
>>> testele.. Ce e de facut, lasam asa? :D
>>>
>>> 2009/6/3 Szeke <aaa.szeke at gmail.com>
>>>
>>> Ceau,
>>>>
>>>> Si eu am aceeasi problema si inca nu imi dau seama de unde provine.
>>>> La mine merge si in checker nu.
>>>> Ar trebui sa scoata regula aia din tabela dinamica, nu stiu de ce nu
>>>> expira timer-ul.
>>>>
>>>> Adriana
>>>>
>>>> 2009/6/3 nervos crocodil <ulcica at gmail.com>
>>>>
>>>>> Am si eu aceeasi problema, dar pe ambele masini. Dupa ce am adaugat un
>>>>> printf la functia test_rules din test.c am observat ca fail-ul e din cauza
>>>>> ca nu corespunde numarul de reguli returnat cu ce ar trebui sa intoarca.
>>>>> Inainte de primul tau fail se inchide o conexiune TCP, care ar trebui scoasa
>>>>> din reguli.
>>>>>
>>>>>
>>>>>
>>>>> static void test_rules (int new_rules)
>>>>> {
>>>>> int x;
>>>>>
>>>>> if (dir == DIR_INSIDE) {
>>>>> rules += new_rules;
>>>>> test("no of rules", (x = WEXITSTATUS (system (list))) ==
>>>>> rules);
>>>>> printf("\nlist returns =%d should be=%d\n", x, rules);
>>>>> }
>>>>> }
>>>>> Spor!
>>>>> Andrei Boeru
>>>>>
>>>>> _______________________________________________
>>>>> pso mailing list
>>>>> pso at cursuri.cs.pub.ro
>>>>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> pso mailing list
>>>> pso at cursuri.cs.pub.ro
>>>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>>>>
>>>>
>>>
>>> _______________________________________________
>>> pso mailing list
>>> pso at cursuri.cs.pub.ro
>>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>>>
>>>
>>
>> _______________________________________________
>> pso mailing list
>> pso at cursuri.cs.pub.ro
>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>>
>>
>
> _______________________________________________
> pso mailing list
> pso at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/pso/attachments/20090607/294c31a6/attachment.htm>
More information about the pso
mailing list