[pso] tema5 teste linux

nervos crocodil ulcica at gmail.com
Wed Jun 3 10:31:37 EEST 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/pso/attachments/20090603/a7646422/attachment-0001.htm>


More information about the pso mailing list