1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Find a file
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
build Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
codan Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
core Bug 455094 - StepIntoSelection cleanup after review 2015-01-07 11:01:56 -05:00
cross Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
debug Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
doc Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
dsf Bug 455094 - StepIntoSelection cleanup after review 2015-01-07 11:01:56 -05:00
dsf-gdb debug tests: Add thread compatibility layer and use it 2015-01-07 12:36:59 -05:00
jtag Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
launch/org.eclipse.cdt.launch Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
llvm Cosmetics. 2015-01-06 21:02:42 -08:00
lrparser Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
memory Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
p2 Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
qt Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
releng Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
remote Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
testsrunner Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
upc Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
util Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
visualizer Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
windows Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
xlc Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00
.gitignore Ignore NFS-created files. 2012-11-08 13:34:54 -08:00
pom.xml Incremented CDT feature version to 8.6.0. 2015-01-06 19:40:38 -05:00