You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by jg...@apache.org on 2012/04/10 02:25:17 UTC

svn commit: r1311532 - /ant/core/trunk/src/tests/antunit/taskdefs/hostinfo-test.xml

Author: jglick
Date: Tue Apr 10 00:25:17 2012
New Revision: 1311532

URL: http://svn.apache.org/viewvc?rev=1311532&view=rev
Log:
https://builds.apache.org/pview/job/Ant-Build-Matrix/475/jdk=JDK%201.5%20(latest),label=Ubuntu/testReport/src.tests.antunit.taskdefs/hostinfo-test_xml/testApache/
src/tests/antunit/taskdefs/hostinfo-test.xml:53: Assertion failed
https://builds.apache.org/pview/job/Ant-Build-Matrix/475/jdk=JDK%201.5%20(latest),label=Ubuntu/testReport/src.tests.antunit.taskdefs/hostinfo-test_xml/testApacheNoPrefix/
src/tests/antunit/taskdefs/hostinfo-test.xml:70: Expected 'eos' but was 'aurora-2012'
>From my Linux machine:
$ host www.apache.org
www.apache.org has address 140.211.11.131
www.apache.org has address 192.87.106.229
www.apache.org has IPv6 address 2001:610:1:80bc:192:87:106:229
www.apache.org mail is handled by 10 minotaur.apache.org.
$ host 140.211.11.131
131.11.211.140.in-addr.arpa domain name pointer eos.apache.org.
$ host 192.87.106.229
229.106.87.192.in-addr.arpa is an alias for 229.224.106.87.192.in-addr.arpa.
229.224.106.87.192.in-addr.arpa domain name pointer aurora-2012.apache.org.

Modified:
    ant/core/trunk/src/tests/antunit/taskdefs/hostinfo-test.xml

Modified: ant/core/trunk/src/tests/antunit/taskdefs/hostinfo-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/hostinfo-test.xml?rev=1311532&r1=1311531&r2=1311532&view=diff
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/hostinfo-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/hostinfo-test.xml Tue Apr 10 00:25:17 2012
@@ -30,6 +30,7 @@
   <property name="apache-hostname" value="www.apache.org" />
   <property name="apache-domain" value="apache.org" />
   <property name="apache-realhost" value="eos" />
+  <property name="apache-realhost.alt" value="aurora-2012" />
   <property name="apache-ip4" value="140.211.11.131" />
     
   <property name="apache-realhost.gump" value="www" />
@@ -53,6 +54,7 @@
       <au:assertTrue>
         <or>
           <equals arg1="${apache-realhost}" arg2="${apache.NAME}"/>
+          <equals arg1="${apache-realhost.alt}" arg2="${apache.NAME}"/>
           <equals arg1="${apache-realhost.gump}" arg2="${apache.NAME}"/>
         </or>
       </au:assertTrue>
@@ -67,10 +69,10 @@
 
     <target name="testApacheNoPrefix" depends="setUp">
       <hostinfo host="${apache-hostname}"/>
-      <au:assertEquals expected="${apache-realhost}" actual="${NAME}"/>
       <au:assertTrue>
         <or>
           <equals arg1="${apache-realhost}" arg2="${NAME}"/>
+          <equals arg1="${apache-realhost.alt}" arg2="${NAME}"/>
           <equals arg1="${apache-realhost.gump}" arg2="${NAME}"/>
         </or>
       </au:assertTrue>