rosjava_core compilation on OS X - one test fails: testCreatePublic [closed]

asked 2013-09-18 11:42:50 -0500

jrd gravatar image

updated 2014-01-28 17:18:00 -0500

ngrennan gravatar image

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:


org.ros.internal.node.DefaultNodeTest > testCreatePublic FAILED
    java.lang.AssertionError at be more specific, it's test under: rosjava/src/test/java org.ros.internal.node.DefaultNodeTest , this one:

  public void testCreatePublic() throws Exception {
    String host = InetAddress.getLocalHost().getCanonicalHostName();
   System.out.println("host String is: '"+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: ''

org.ros.internal.node.DefaultNodeTest > testCreatePublic FAILED
        at org.junit.Assert.assertTrue(
        at org.junit.Assert.assertFalse(
        at org.junit.Assert.assertFalse(
        at org.ros.internal.node.DefaultNodeTest.testCreatePublic(

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

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2016-08-08 00:33:53.881638