Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[swtbot-dev] problems running swtbot test suite in some configurations

Hi

I'm experiencing some problems when running "mvn clean verify" (using
Indigo TP): I have two machines with the same operating system, Ubuntu
13.04 and Unity.  I'm running the build using a separate display for
running the build, as suggested here (using metacity):
http://wiki.eclipse.org/SWTBot/Automate_test_execution#use_another_DISPLAY_to_save_time.

On a machine (a few years old, dual core), the build runs fine.

On another machine (a younger laptop, quad core), the build
systematically fails (see the failing part at the end).

Is anyone experiencing a similar problem?

thanks in advance
	Lorenzo

Exception in thread "WorkbenchTestable" org.eclipse.swt.SWTException:
Device is disposed
	at org.eclipse.swt.SWT.error(SWT.java:4282)
	at org.eclipse.swt.SWT.error(SWT.java:4197)
	at org.eclipse.swt.SWT.error(SWT.java:4168)
	at org.eclipse.swt.widgets.Display.error(Display.java:1210)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:4321)
	at
org.eclipse.ui.internal.testing.WorkbenchTestable.testingFinished(WorkbenchTestable.java:122)
	at
org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.runTests(AbstractUITestApplication.java:50)
	at
org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:71)
	at java.lang.Thread.run(Thread.java:662)
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Eclipse SWTBot .................................... SUCCESS [4.513s]
[INFO] target-platforms .................................. SUCCESS [0.009s]
[INFO] kepler ............................................ SUCCESS [0.411s]
[INFO] juno .............................................. SUCCESS [0.009s]
[INFO] indigo ............................................ SUCCESS [0.009s]
[INFO] org.eclipse.swtbot.ant.junit ...................... SUCCESS [1.761s]
[INFO] org.eclipse.swtbot.eclipse.core ................... SUCCESS [1.434s]
[INFO] org.eclipse.swtbot.swt.finder ..................... SUCCESS [5.379s]
[INFO] org.eclipse.swtbot.junit4_x ....................... SUCCESS [0.609s]
[INFO] org.eclipse.swtbot ................................ SUCCESS [0.270s]
[INFO] org.eclipse.swtbot.forms.finder ................... SUCCESS [0.701s]
[INFO] org.eclipse.swtbot.forms .......................... SUCCESS [0.127s]
[INFO] org.eclipse.swtbot.eclipse.finder ................. SUCCESS [1.650s]
[INFO] org.eclipse.swtbot.go ............................. SUCCESS [0.418s]
[INFO] org.eclipse.swtbot.eclipse ........................ SUCCESS [0.195s]
[INFO] org.eclipse.swtbot.eclipse.dsl .................... SUCCESS [0.754s]
[INFO] org.eclipse.swtbot.eclipse.gef.finder ............. SUCCESS [1.386s]
[INFO] org.eclipse.swtbot.eclipse.spy .................... SUCCESS [0.894s]
[INFO] org.eclipse.swtbot.eclipse.junit.headless ......... SUCCESS [0.871s]
[INFO] org.eclipse.swtbot.eclipse.test.junit ............. SUCCESS [0.151s]
[INFO] org.eclipse.swtbot.eclipse.ui ..................... SUCCESS [1.231s]
[INFO] org.eclipse.swtbot.generator ...................... SUCCESS [1.281s]
[INFO] org.eclipse.swtbot.generator.jdt .................. SUCCESS [1.298s]
[INFO] org.eclipse.swt.examples .......................... SUCCESS [5.910s]
[INFO] org.eclipse.swtbot.swt.demo ....................... SUCCESS [0.722s]
[INFO] org.eclipse.ui.forms.examples ..................... SUCCESS [0.860s]
[INFO] org.eclipse.swtbot.eclipse.gef .................... SUCCESS [0.127s]
[INFO] org.eclipse.swtbot.generator.feature .............. SUCCESS [0.094s]
[INFO] org.eclipse.swtbot.ide ............................ SUCCESS [0.157s]
[INFO] org.eclipse.swtbot.updatesite ..................... SUCCESS [7.919s]
[INFO] org.eclipse.swtbot.eclipse.ui.test ................ SUCCESS [16.671s]
[INFO] org.eclipse.swtbot.swt.finder.test.keyboards ...... SUCCESS [0.395s]
[INFO] org.eclipse.swtbot.swt.finder.test ................ FAILURE
[55:25.046s]
[INFO] org.eclipse.swtbot.forms.finder.test .............. SKIPPED
[INFO] org.eclipse.swtbot.eclipse.finder.test ............ SKIPPED
[INFO] org.eclipse.swtbot.test ........................... SKIPPED
[INFO] org.eclipse.swtbot.generator.test ................. SKIPPED
[INFO] org.eclipse.swtbot.generator.jdt.test ............. SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 57:59.329s
[INFO] Finished at: Mon Oct 21 15:50:22 CEST 2013
[INFO] Final Memory: 43M/161M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-surefire-plugin:0.18.1:test (default-test) on
project org.eclipse.swtbot.swt.finder.test: There are test failures.
[ERROR]
[ERROR] Please refer to
/home/bettini/tmp/org.eclipse.swtbot/org.eclipse.swtbot.swt.finder.test/target/surefire-reports
for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :org.eclipse.swtbot.swt.finder.test


-- 
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book



Back to the top