Skip to content

Commit

Permalink
fullBuild in syncExec
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Dec 4, 2022
1 parent 026fbf8 commit 28622dc
Showing 1 changed file with 12 additions and 3 deletions.
Expand Up @@ -949,7 +949,16 @@ protected void waitForBuild() throws CoreException {

@Override
public boolean test() throws Exception {
IResourcesSetupUtil.waitForBuild();
Display.getDefault().syncExec(new Runnable() {
@Override
public void run() {
try {
IResourcesSetupUtil.fullBuild();
} catch (CoreException e) {
e.printStackTrace();
}
}
});
try {
assertNoIssuesInProject();
} catch (AssertionError error) {
Expand All @@ -967,7 +976,7 @@ public void run(IProgressMonitor monitor) throws CoreException {
} catch (CoreException e) {
e.printStackTrace();
}
IResourcesSetupUtil.cleanBuild();
// IResourcesSetupUtil.cleanBuild();
return false;
}
return true;
Expand All @@ -977,7 +986,7 @@ public void run(IProgressMonitor monitor) throws CoreException {
public String getFailureMessage() {
return "Build with errors: " + error.getMessage();
}
});
}, SWTBotPreferences.TIMEOUT, 2000);
/*
IResourcesSetupUtil.reallyWaitForAutoBuild();
Expand Down

0 comments on commit 28622dc

Please sign in to comment.