Ticket #297 (closed defect: fixed)

Opened 9 years ago

Last modified 7 years ago

Fix ij1-bridge tests that fail due to headless violations

Reported by: curtis Owned by: curtis
Priority: blocker Milestone: biweekly-2010: Nov-29 to Dec-10
Component: Build System Version:
Severity: fatal Keywords:
Cc: Blocked By:
Blocking: #1012, #1014

Description

Some tests require graphical AWT components, and thus fail during Hudson builds. E.g.:

-------------------------------------------------------------------------------
Test set: imagej.ij1bridge.plugin.Ij1PluginFinderTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.03 sec <<< FAILURE!
testIj1PluginFinder(imagej.ij1bridge.plugin.Ij1PluginFinderTest)  Time elapsed: 0.027 sec  <<< ERROR!
java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
	at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
	at java.awt.Window.<init>(Window.java:432)
	at java.awt.Frame.<init>(Frame.java:403)
	at ij.ImageJ.<init>(ImageJ.java:118)
	at ij.ImageJ.<init>(ImageJ.java:106)
	at imagej.ij1bridge.plugin.Ij1PluginFinder.findPlugins(Ij1PluginFinder.java:21)
	at imagej.ij1bridge.plugin.Ij1PluginFinderTest.testIj1PluginFinder(Ij1PluginFinderTest.java:19)

Change History

comment:1 Changed 9 years ago by curtis

  • Milestone set to biweekly-2010: Nov-29 to Dec-10

comment:2 Changed 9 years ago by curtis

  • Status changed from new to closed
  • Resolution set to fixed

Rick has commented out the problematic tests for now.

comment:3 Changed 7 years ago by curtis

  • Blocking 1012, 1014 added
Note: See TracTickets for help on using tickets.