ATF-devel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: About non-deterministic tests



On Sun, Sep 18, 2011 at 04:11:59PM +0300, Jukka Ruohonen wrote:
>               if (failure) {
>                       atf_tc_expect_fail("PR xxx/123");
>                       atf_tc_fail("expected race occured");
>               }
> 
>               ...
> 
>               atf_tc_fail("expected race did not occur");
>               // end of test

I reply to myself, but the above should read:

        atf_tc_expect_fail("PR xxx/123");

        if (failure)
                 atf_tc_fail("expected race occured");

        ...

        atf_tc_fail("expected race did not occur");
        // end of test

Such that these "unreliable" tests are counted as expected failures.

- Jukka.


Home | Main Index | Thread Index | Old Index