artifact_id;status_id;status_name;priority;submitter_id;submitter_name;assigned_to_id;assigned_to_name;open_date;close_date;last_modified_date;summary;details;"Resolution";"Version";"Component"
1262;1;"Open";3;11011;"Thomas Wickham";102;"Sylvain Le Gall";"2013-03-03 12:12";"";"2013-03-23 00:01";"parallel running tests";"Hello,

I work this morning on the multi-threading of OUnit2, feature-request #1095

I've patched OUnitCore and _oasis. Seems to works but I don't know if adding  `threads` in the BuildDepends section is the correct way to add thread support, does it add the `-thread` flag ?

However, tests shows that OUnit is running in parallel in the processus point of view.

I choose the thread approach because in OCaml, processes will be a far more heavy solution for... what benefits ?
As threads are system threads, they are preemptive, are they ? (The doc says so, I've always learn so, but you don't feel so in the FR...). Timeouts can be managed with threads also, just add a watchdog for each thread test.
Moreover, the cost of process creation comparing to the running time of a little OUnit test is a bit unfair.
That's why threads seems to be the Right Thing.

I used a thread pool to minimize the cost of thread creation, keeping in mind that tests should be small. Maybe the pool size should be adjusted, It's quiet easy.

Please review my patch and help me test, I'm far from confident with oasis.
I only give you oUnitCore.ml, I think you'll know better than me how to change _oasis. ;-)

Attached: patch in whatsnew and diff format";"Accepted";"None";"None"