SuccessConsole Output

Started by upstream project "1-SWT-Increment_if_needed" build number 1122
originally caused by:
 Started by upstream project "I-build-4.14" build number 156
 originally caused by:
  Started by timer
Running as SYSTEM
Building on master in workspace /home/hudson/genie.releng/.hudson/jobs/SWT-Builds-Workspace/workspace
[ssh-agent] Looking for ssh-agent implementation...
[ssh-agent]   Exec ssh-agent (binary ssh-agent on a remote machine)
$ ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-oStolWYLey3G/agent.30463
SSH_AGENT_PID=30466
[ssh-agent] Started.
Running ssh-add (command line suppressed)
Identity added: /home/hudson/genie.releng/.hudson/jobs/SWT-Builds-Workspace/workspace@tmp/private_key_2453981841479919724.key (/home/hudson/genie.releng/.hudson/jobs/SWT-Builds-Workspace/workspace@tmp/private_key_2453981841479919724.key)
[ssh-agent] Using credentials genie.releng (ssh://genie.releng@git.eclipse.org)
[workspace] $ /bin/bash -x /tmp/genie.releng/jenkins3235049744250584965.sh
+ ant -f /home/hudson/genie.releng/.hudson/jobs/SWT-Builds-Workspace/workspace/eclipse.platform.swt/bundles/org.eclipse.swt/buildInternal.xml write_qualifier '-Dlib.dir=~genie.releng/.ant/lib' -Dbuild_changed=true
Picked up JAVA_TOOL_OPTIONS: -Xmx2G -Djava.io.tmpdir=/tmp/genie.releng -DforkCount=1
Buildfile: /home/hudson/genie.releng/.hudson/jobs/SWT-Builds-Workspace/workspace/eclipse.platform.swt/bundles/org.eclipse.swt/buildInternal.xml

get_tag:
     [echo] Current tag=v4930r7o.

check_build_changed:

generate_qualifier:
     [echo] 20191204-0601

write_qualifier:

BUILD SUCCESSFUL
Total time: 0 seconds
[workspace] $ /bin/sh -xe /tmp/genie.releng/jenkins5456331835038270143.sh
+ ant -f /home/hudson/genie.releng/.hudson/jobs/SWT-Builds-Workspace/workspace/eclipse.platform.swt/bundles/org.eclipse.swt/buildSWT.xml commit_poms_and_binaries
Picked up JAVA_TOOL_OPTIONS: -Xmx2G -Djava.io.tmpdir=/tmp/genie.releng -DforkCount=1
Buildfile: /home/hudson/genie.releng/.hudson/jobs/SWT-Builds-Workspace/workspace/eclipse.platform.swt/bundles/org.eclipse.swt/buildSWT.xml

commit_poms_and_binaries:

commit_poms:

get_version:
     [echo] Version=4930r7; New=4930r8; New comma_ver=4,930,8,0

commit_binaries:

git_rm:

git_commit:

git_commit_src:
     [exec] On branch master
     [exec] Your branch is up to date with 'origin/master'.
     [exec] 
     [exec] Changes to be committed:
     [exec]   (use "git reset HEAD <file>..." to unstage)
     [exec] 
     [exec] 	modified:   bundles/org.eclipse.swt/pom.xml
     [exec] 
     [exec] [master 94d6b98654] v4930r7
     [exec]  1 file changed, 1 insertion(+), 1 deletion(-)

git_commit_bin:
     [exec] On branch master
     [exec] Your branch is up to date with 'origin/master'.
     [exec] 
     [exec] Changes to be committed:
     [exec]   (use "git reset HEAD <file>..." to unstage)
     [exec] 
     [exec] 	modified:   bundles/binaries-parent/pom.xml
     [exec] 
     [exec] [master 5f79b3dfc] v4930r7
     [exec]  1 file changed, 1 insertion(+), 1 deletion(-)

BUILD SUCCESSFUL
Total time: 0 seconds
[workspace] $ /bin/sh -xe /tmp/genie.releng/jenkins7584515323832942024.sh
+ ant -f /home/hudson/genie.releng/.hudson/jobs/SWT-Builds-Workspace/workspace/eclipse.platform.swt/bundles/org.eclipse.swt/buildSWT.xml tag_projects
Picked up JAVA_TOOL_OPTIONS: -Xmx2G -Djava.io.tmpdir=/tmp/genie.releng -DforkCount=1
Buildfile: /home/hudson/genie.releng/.hudson/jobs/SWT-Builds-Workspace/workspace/eclipse.platform.swt/bundles/org.eclipse.swt/buildSWT.xml

get_version:
     [echo] Version=4930r7; New=4930r8; New comma_ver=4,930,8,0

get_new_tag:
     [echo] New tag=4930r7p.

tag_projects:

get_version:

check_fragment_libraries:
     [echo] Checking ${fragment}
     [echo] Found 23 libraries with version 4930r7 and 0 libraries with old versions
     [echo] Success

BUILD SUCCESSFUL
Total time: 0 seconds
[workspace] $ /bin/sh -xe /tmp/genie.releng/jenkins6367921177755660537.sh
+ pushd /home/hudson/genie.releng/.hudson/jobs/SWT-Builds-Workspace/workspace/eclipse.platform.swt
/home/hudson/genie.releng/.hudson/jobs/SWT-Builds-Workspace/workspace/eclipse.platform.swt /jobs/genie.releng/SWT-Builds-Workspace/workspace
+ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

nothing to commit, working tree clean
+ git log -p -2
commit 94d6b98654e5f33ca376e1853a758434346f521f
Author: genie.releng <releng-bot@eclipse.org>
Date:   Wed Dec 4 06:01:31 2019 -0500

    v4930r7

diff --git a/bundles/org.eclipse.swt/pom.xml b/bundles/org.eclipse.swt/pom.xml
index ad34efe5d6..f0ec694c8f 100644
--- a/bundles/org.eclipse.swt/pom.xml
+++ b/bundles/org.eclipse.swt/pom.xml
@@ -23,7 +23,7 @@
     <packaging>eclipse-plugin</packaging>
       
     <properties>
-        <forceContextQualifier>v20191203-0603</forceContextQualifier>
+        <forceContextQualifier>v20191204-0601</forceContextQualifier>
         <sonar.sources>Eclipse SWT Accessibility/cocoa,Eclipse SWT Accessibility/common,Eclipse SWT Accessibility/gtk,Eclipse SWT Accessibility/win32,Eclipse SWT AWT/cocoa,Eclipse SWT AWT/common,Eclipse SWT AWT/gtk,Eclipse SWT AWT/win32,Eclipse SWT Browser/cocoa,Eclipse SWT Browser/common,Eclipse SWT Browser/gtk,Eclipse SWT Browser/win32,Eclipse SWT Custom Widgets/common,Eclipse SWT Drag and Drop/cocoa,Eclipse SWT Drag and Drop/common,Eclipse SWT Drag and Drop/gtk,Eclipse SWT Drag and Drop/win32,Eclipse SWT OLE Win32/win32,Eclipse SWT OpenGL/cocoa,Eclipse SWT OpenGL/common,Eclipse SWT OpenGL/glx,Eclipse SWT OpenGL/gtk,Eclipse SWT OpenGL/win32,Eclipse SWT PI/cairo,Eclipse SWT PI/cocoa,Eclipse SWT PI/common,Eclipse SWT PI/gtk,Eclipse SWT PI/win32,Eclipse SWT Printing/cocoa,Eclipse SWT Printing/common,Eclipse SWT Printing/gtk,Eclipse SWT Printing/win32,Eclipse SWT Program/cocoa,Eclipse SWT Program/common,Eclipse SWT Program/gtk,Eclipse SWT Program/win32,Eclipse SWT WebKit/cocoa,Eclipse SWT WebKit/gtk,Eclipse SWT WebKit/win32,Eclipse SWT/cairo,Eclipse SWT/cocoa,Eclipse SWT/common_j2se,Eclipse SWT/common,Eclipse SWT/emulated/bidi,Eclipse SWT/emulated/coolbar,Eclipse SWT/emulated/expand,Eclipse SWT/emulated/taskbar,Eclipse SWT/emulated/tooltip,Eclipse SWT/gtk,Eclipse SWT/win32</sonar.sources>
     </properties>
       

commit e6caf796ec280c52a246b71ace1c685ea0b7c45e
Author: Lakshmi Shanmugam <lshanmug@in.ibm.com>
Date:   Wed Dec 4 16:11:28 2019 +0530

    Bug 536564 - Test failures on Mac OS X 10.13 from I20180628-0230
    
    Disabling the failing tests on Mac.
    
    Change-Id: I8240e3795a4d17a3b86e09aeb63413f3a4b42862

diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Display.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Display.java
index ab41ec0b17..56b7af9378 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Display.java	
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Display.java	
@@ -40,6 +40,7 @@ import org.eclipse.swt.widgets.Monitor;
 import org.eclipse.swt.widgets.Shell;
 import org.eclipse.swt.widgets.Synchronizer;
 import org.eclipse.test.Screenshots;
+import org.junit.Assume;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.TestName;
@@ -217,12 +218,13 @@ public void test_findDisplayLjava_lang_Thread() {
 
 @Test
 public void test_getActiveShell() {
+	Assume.assumeFalse("Test fails on Mac: Bug 536564", SwtTestUtil.isCocoa);
 	Display display = new Display();
 	try {
 		Shell shell = new Shell(display);
 		shell.setText("test_getActiveShell");
 		shell.open();
-		drainEventQueue(display, 5000); // workaround for https://bugs.eclipse.org/506680
+		drainEventQueue(display, 150); // workaround for https://bugs.eclipse.org/506680
 		assertSame(shell, display.getActiveShell());
 		shell.dispose();
 	} finally {
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Shell.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Shell.java
index 02a3c5959e..7189d131c5 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Shell.java	
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Shell.java	
@@ -502,8 +502,8 @@ public void test_open() {
 
 @Test
 public void test_setActive() {
-	if (SwtTestUtil.isGTK) {
-		//TODO Fix GTK failure.
+	if (SwtTestUtil.isGTK || SwtTestUtil.isCocoa) {
+		//TODO Fix GTK and Cocoa failure.
 		if (SwtTestUtil.verbose) {
 			System.out.println("Excluded test_setActive(org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Shell))");
 		}
@@ -517,9 +517,6 @@ public void test_setActive() {
 	/* Test setActive for visible shell. */
 	shell.setVisible(true);
 	shell.setActive();
-	if (SwtTestUtil.isCocoa) { //workaround for Bug 536564
-		drainEventQueue(shell.getDisplay(), 5000);
-	}
 	assertTrue("visible shell was not made active", shell.getDisplay().getActiveShell() == shell);
 
 	/* Test setActive for visible dialog shell. */
@@ -527,9 +524,6 @@ public void test_setActive() {
 	testShell.setBounds(shell.getBounds());
 	testShell.setVisible(true);
 	testShell.setActive();
-	if (SwtTestUtil.isCocoa) { //workaround for Bug 536564
-		drainEventQueue(shell.getDisplay(), 2000);
-	}
 	assertTrue("visible dialog shell was not made active", testShell.getDisplay().getActiveShell() == testShell);
 
 	/* Test setActive for non-visible shell. */
@@ -537,9 +531,6 @@ public void test_setActive() {
 	shell.setVisible(false);
 	shell.setActive();
 	shell2.setText("Shell2: Not active");
-	if (SwtTestUtil.isCocoa) { //workaround for Bug 536564
-		drainEventQueue(shell.getDisplay(), 2000);
-	}
 	assertTrue("non-visible shell was made active", shell.getDisplay().getActiveShell() != shell);
 
 	/* Test setActive for non-visible dialog shell. */
@@ -547,32 +538,11 @@ public void test_setActive() {
 	testShell.setVisible(false);
 	testShell.setActive();
 	shell2.setText("Shell2: Not active");
-	if (SwtTestUtil.isCocoa) { //workaround for Bug 536564
-		drainEventQueue(shell.getDisplay(), 2000);
-	}
 	assertTrue("non-visible dialog shell was made active", testShell.getDisplay().getActiveShell() != testShell);
 
 	shell2.dispose();
 }
 
-private static void drainEventQueue(Display display, int millis) {
-	if (millis == 0) {
-		while (!display.isDisposed() && display.readAndDispatch()) {
-		}
-		return;
-	}
-	long end = System.currentTimeMillis() + millis;
-	while (!display.isDisposed() && System.currentTimeMillis() < end) {
-		if (!display.readAndDispatch ()) {
-			try {
-				Thread.sleep(10);
-			} catch (InterruptedException e) {
-				e.printStackTrace();
-			}
-		}
-	}
-}
-
 @Override
 @Test
 public void test_setEnabledZ() {
+ popd
/jobs/genie.releng/SWT-Builds-Workspace/workspace
+ pushd /home/hudson/genie.releng/.hudson/jobs/SWT-Builds-Workspace/workspace/eclipse.platform.swt.binaries
/home/hudson/genie.releng/.hudson/jobs/SWT-Builds-Workspace/workspace/eclipse.platform.swt.binaries /jobs/genie.releng/SWT-Builds-Workspace/workspace
+ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

nothing to commit, working tree clean
+ git log -p -1
commit 5f79b3dfcc116d035e9118b169fc1f1e841b4596
Author: genie.releng <releng-bot@eclipse.org>
Date:   Wed Dec 4 06:01:31 2019 -0500

    v4930r7

diff --git a/bundles/binaries-parent/pom.xml b/bundles/binaries-parent/pom.xml
index db9df0173..4dafb6af9 100644
--- a/bundles/binaries-parent/pom.xml
+++ b/bundles/binaries-parent/pom.xml
@@ -25,7 +25,7 @@
     <packaging>pom</packaging>
       
     <properties>
-        <forceContextQualifier>v20191203-0603</forceContextQualifier>
+        <forceContextQualifier>v20191204-0601</forceContextQualifier>
     </properties>
       
     <build>
+ popd
/jobs/genie.releng/SWT-Builds-Workspace/workspace
Waiting for the completion of 3-SWT-git_push
3-SWT-git_push #408 completed. Result was SUCCESS
Build step 'Trigger/call builds on other projects' changed build result to SUCCESS
$ ssh-agent -k
unset SSH_AUTH_SOCK;
unset SSH_AGENT_PID;
echo Agent pid 30466 killed;
[ssh-agent] Stopped.
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Finished: SUCCESS