Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-releng-dev] [eclipse-build]Build N20050916-0010 (Timestamp: 200509160010):Automated JUnit testing complete. Test failures/errors occurred.


I haven't looked into any of the test failures below, but I thought I should pass along some information about a core test I recently fixed that was also failing on the Mac.  As you may know, the operating system of the Mac test machine was recently upgraded. For whatever reason, it appears that the newer OS has different characteristics when dealing with concurrent execution of Java threads.  In the core test, three jobs were being scheduled one after the other:

job0.schedule();
job1.schedule();
job2.schedule();

The test then waited until job2 started, by waiting on a flag ("flag2") that was set in the body of job2's run method:

while (!flag2) Thread.sleep(100);

The test then *assumed* that job0 had also started.  Of course, since the three jobs are executing concurrently there is no guarantee that one has started before the other.  It turns out that on all other platforms we test, including the previous Mac version, that the jobs started in the order they were scheduled. On the new Mac version, they execute in a very inconsistent order (I have also observed this behaviour on a dual processor Linux machine).  This is perfectly legal behaviour for a Java VM, and the test was fixed accordingly.

I just thought I should mention this in case any of the tests below are falling prey to a similar invalid assumption in either the tests or application code.

John



eclipse-releng@xxxxxxxxxxx
Sent by: platform-releng-dev-bounces@xxxxxxxxxxx

16/09/2005 12:44 PM

Please respond to
"Eclipse platform release engineering list."

To
platform-releng-dev@xxxxxxxxxxx
cc
Subject
[platform-releng-dev] [eclipse-build]Build N20050916-0010        (Timestamp: 200509160010):Automated JUnit testing complete.        Test failures/errors occurred.





Build N20050916-0010 (Timestamp: 200509160010):  Automated JUnit testing is complete.  Test failures/errors occurred in the following:  

org.eclipse.jdt.debug.tests_macosx.carbon.ppc
org.eclipse.jdt.ui.tests_macosx.carbon.ppc
org.eclipse.swt.tests_linux.gtk.x86
org.eclipse.swt.tests_macosx.carbon.ppc
org.eclipse.team.tests.cvs_macosx.carbon.ppc

HTTP Download:

                http://download.eclipse.org/eclipse/downloads/drops/N20050916-0010

FTP Download:

                user: anonymous
                password: (e-mail address or leave blank)
                server:  download.eclipse.org
                cd to directory:  N20050916-0010

                or

                ftp://download.eclipse.org/N20050916-0010
_______________________________________________
platform-releng-dev mailing list
platform-releng-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-releng-dev


Back to the top