On 24 April 2015 at 08:30, Nicolas Morey-Chaisemartin <[email protected]> wrote:
> Hi everyone, > > I'm currently trying to get all the ODP validation tests running on our > MPPA platform and ran across an issue: > It appears CUnit (2.1-3) is *not* thread safe ! > > It isn't a very big issue but it creates unexpected behaviour (and > warnings in our simulators) in the odp_shm test for example. > In this test, each thread runs several CU_ASSERT which internally trigger > non atomic increment in CUnit... > I added a tiny lock within our build of CUnit that fixes the issue but it > is something you should definitly have a look at. > Could you post that patch to Cunit http://sourceforge.net/projects/cunit/ - or to us and we can try pushing it up. > > > On a mostly unrelated note, several tests (odp_schedule, odp_shm, > odp_synchronizers), spawn odp_cpu_count() threads. > This means in the end that we have odp_cpu_count() + 1 thread running > (couting the main). Is this something wanted? > Where do you define end after global terminate - the main thread will still be active then. > > Nicolas > _______________________________________________ > lng-odp mailing list > [email protected] > https://lists.linaro.org/mailman/listinfo/lng-odp > -- Mike Holmes Technical Manager - Linaro Networking Group Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM SoCs
_______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
