Re: [java-gnome-hackers] Failed tests run + LoremIpsum class location
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2012-08-13 00:53:40
|
On Mon, 2012-08-13 at 09:28 +1000, Andrew Cowie wrote: > That one is starting to get on my nerves. I've tried running > ValidateInternationalization as a test by itself and the test case > *passes*. > > I run it in as the UnitTests suite, and it *fails*. Ok, I've made some tentative progress. The relevant commit message: Force static initalizers and/or library initialization code in setUp() Move initializers, being run once in an initial test case, to a setUp() block. I'm a bit vague as to why this is necessary; it would seem that JUnit or Java 7 is being stricter about its classloading, so we need to force the static initializers to run every test. This is somewhat surprising, but seems a workaround. It's more "correct" JUnit in any event. Go figure. Anyway, the test suite is passing for me now, although I also had to do === modified file 'tests/bindings/org/gnome/gtk/ValidateEntry.java' --- tests/bindings/org/gnome/gtk/ValidateEntry.java 2010-05-14 23:50:09 +0000 +++ tests/bindings/org/gnome/gtk/ValidateEntry.java 2012-08-12 23:12:22 +0000 @@ -26,7 +26,7 @@ */ public class ValidateEntry extends GraphicalTestCase { - public final void testEntryIcon() { + public final void skipEntryIcon() { final Entry entry; entry = new Entry(); because that test depends on GTK 3.4.4 which has the fix for https://bugzilla.gnome.org/show_bug.cgi?id=679537 which I don't have at the moment. Should I commit that to 'mainline'? Doesn't seem so, but you'll need it... AfC Sydney |