TMF: Added a method in UI tests to delay main thread until trace is opened
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Wed, 18 Dec 2013 21:50:45 +0000 (16:50 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 20 Dec 2013 20:24:00 +0000 (15:24 -0500)
commitbc5f2035d476a8d24883963551cf4b3d63c6f3e4
tree5885ee5e383e5da5c1a0933160c6eb8e5ffd755c
parentd9ac72f4f542f59a26dc16f8fa6044795da34965
TMF: Added a method in UI tests to delay main thread until trace is opened

In o.e.l.tmf.ui.tests, the main thread often need to be put to sleep while a
trace element is being opened. The sleep time was put to 500 ms because that's
what showed best results. But sometimes, unit tests fail because it takes a bit
more than that. Instead of putting longer delays, we loop a certain number of
times until the trace is opened or after a certain timeout.

Change-Id: I662d951115eacbb3fa5b17cfe534a8e5c2a85eb4
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/20018
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.linuxtools.tmf.ui.tests/shared/org/eclipse/linuxtools/tmf/ui/tests/shared/ProjectModelTestData.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/project/model/ProjectModelAnalysisTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/project/model/ProjectModelOutputTest.java
org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/project/model/ProjectModelTraceTest.java
This page took 0.024642 seconds and 5 git commands to generate.