Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Tasse2019-07-10 12:02:36 -0400
committerPatrick Tasse2019-07-10 15:46:19 -0400
commit285d9547045431aac92217d04e0c4f53073b2472 (patch)
tree234eaf727b1ca78563e6a5e9b0b5d1e5bbf75614
parent88dfe60e2554b9bf1aafaca179f5d42112f22b1c (diff)
downloadorg.eclipse.tracecompass-285d9547045431aac92217d04e0c4f53073b2472.tar.gz
org.eclipse.tracecompass-285d9547045431aac92217d04e0c4f53073b2472.tar.xz
org.eclipse.tracecompass-285d9547045431aac92217d04e0c4f53073b2472.zip
swtbot: Cleanup perspectives in TmfAlignTimeAxisTest
Leftover perspectives could affect other tests. Change-Id: Ib4858272d657a77aa6084f914776e76320608314 Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com> Reviewed-on: https://git.eclipse.org/r/145872 Tested-by: CI Bot Reviewed-by: Simon Delisle <simon.delisle@ericsson.com> Tested-by: Simon Delisle <simon.delisle@ericsson.com>
-rw-r--r--tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/viewers/events/TmfAlignTimeAxisTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/viewers/events/TmfAlignTimeAxisTest.java b/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/viewers/events/TmfAlignTimeAxisTest.java
index e759e7c8a6..9c6ec01998 100644
--- a/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/viewers/events/TmfAlignTimeAxisTest.java
+++ b/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/viewers/events/TmfAlignTimeAxisTest.java
@@ -131,6 +131,10 @@ public class TmfAlignTimeAxisTest {
*/
@AfterClass
public static void cleanup() {
+ fBot.perspectiveById(TestingPerspectiveFactory.ID).close();
+ fBot.perspectiveById(AlignPerspectiveFactory1.ID).close();
+ fBot.perspectiveById(AlignPerspectiveFactory2.ID).close();
+ fBot.perspectiveById(AlignPerspectiveFactory3.ID).close();
SWTBotUtils.deleteProject(PROJET_NAME, new SWTWorkbenchBot());
fLocation.delete();
fLogger.removeAllAppenders();

Back to the top