rosjava_core compilation on OS X - one test fails: testCreatePublic [closed]
Hi, I have a question about rosjava_core (hydro).
If I try to compile it on OS X, everything works fine, except that one test fails:
:rosjava:testClasses
:rosjava:test
org.ros.internal.node.DefaultNodeTest > testCreatePublic FAILED
java.lang.AssertionError at DefaultNodeTest.java:89
..to be more specific, it's test under: rosjava/src/test/java org.ros.internal.node.DefaultNodeTest , this one:
@Test
public void testCreatePublic() throws Exception {
String host = InetAddress.getLocalHost().getCanonicalHostName();
System.out.println("host String is: '"+host+"'");
assertFalse(InetAddresses.isInetAddress(host));
checkNodeAddress(host);
}
and if I run this again with:
./gradlew clean build --info
it returns this that host is:
org.ros.internal.node.DefaultNodeTest > testCreatePublic STANDARD_OUT
host String is: '192.168.0.3'
org.ros.internal.node.DefaultNodeTest > testCreatePublic FAILED
java.lang.AssertionError:
at org.junit.Assert.fail(Assert.java:91)
at org.junit.Assert.assertTrue(Assert.java:43)
at org.junit.Assert.assertFalse(Assert.java:68)
at org.junit.Assert.assertFalse(Assert.java:79)
at org.ros.internal.node.DefaultNodeTest.testCreatePublic(DefaultNodeTest.java:90)
As far as I can say, the problem here is that LAN IP of my computer is evaluated as InetAddress.
My question is: what can be cause of this and how could I solve it?
Note: compilation (and tests) works on:
-Ubuntu 12.04 LTS 64bit
and this test fails on:
-OS X 10.8.3 ML 64bit
-OS X 10.6.8 SL 32bit
Thanks for any ideas.. Jarda