Skip to content

Commit

Permalink
debug.tests: org.eclipse.urischeme/skipAutoRegistration #2245
Browse files Browse the repository at this point in the history
IOConsoleTests complained about still running
AutoRegisterSchemeHandlersJob on macOS

eclipse-platform/eclipse.platform.ui#2245
  • Loading branch information
EcljpseB0T authored and jukzi committed Sep 16, 2024
1 parent e3664ce commit b6572c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.lang.management.ManagementFactory;
import java.lang.management.ThreadInfo;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
Expand Down Expand Up @@ -223,8 +222,9 @@ public static boolean waitForJobs(String owner, long minTimeMs, long maxTimeMs,
}
jobs.forEach(Job::wakeUp);

if (!Collections.disjoint(runningJobs, jobs)) {
// There is a job which runs already quite some time, don't wait for it to avoid test timeouts
if (runningJobs.containsAll(jobs)) {
// There are only jobs which runs already quite some time, don't
// wait for them to avoid test timeouts
dumpRunningOrWaitingJobs(owner, jobs);
return true;
}
Expand Down
1 change: 1 addition & 0 deletions debug/org.eclipse.debug.tests/test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<target name="suite">
<property name="platform-debug-folder"
value="${eclipse-home}/platform_debug_folder"/>
<property name="org.eclipse.urischeme/skipAutoRegistration" value="true"></property>
<delete dir="${platform-debug-folder}" quiet="true"/>
<ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}">
<property name="data-dir" value="${platform-debug-folder}"/>
Expand Down

0 comments on commit b6572c8

Please sign in to comment.