1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/dsf-gdb
Simon Marchi 0f94c4a067 debug tests: Add thread compatibility layer and use it
Having a compatibility layer for threading operations, like the one we
have for sleep, will allow removing a lot of platform dependent code in
the test sources, therefore simplifying the tests themselves.

I changed MultiThread.cc and MultiThreadRunControl.cc as examples, but
there are other tests files that could benefit from it.

I also changed MultiThread.cc to remove all the synchronization based on
sleeps. It now works using thread barriers, which should make the tests
less prone to random failure (although I don't think these ones were
particularly flaky) and run faster (since we don't wait for nothing).

The fallouts of that change on the Java part of the tests are taken care
of as well.

Change-Id: I7be86a5727877638c0ff0a489d263ee6bbe84764
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/36814
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Hudson CI
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-01-07 12:36:59 -05:00
..
org.eclipse.cdt.dsf.gdb Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
org.eclipse.cdt.dsf.gdb.tests Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
org.eclipse.cdt.dsf.gdb.ui Bug 455094 - StepIntoSelection cleanup after review 2015-01-07 11:01:56 -05:00
org.eclipse.cdt.examples.dsf.gdb Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
org.eclipse.cdt.gnu.dsf-feature Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
org.eclipse.cdt.gnu.dsf.source-feature Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
org.eclipse.cdt.gnu.multicorevisualizer-feature Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
org.eclipse.cdt.tests.dsf.gdb debug tests: Add thread compatibility layer and use it 2015-01-07 12:36:59 -05:00