ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: [GUMP@vmgump]: Project test-ant (in module ant) failed
Date Mon, 20 Nov 2006 14:25:17 GMT
    [junit] Testsuite: org.apache.tools.ant.taskdefs.ExecTaskTest
    [junit] Tests run: 30, Failures: 1, Errors: 0, Time elapsed: 23.639 sec
    [junit] 
    [junit] Testcase: testRedirector13(org.apache.tools.ant.taskdefs.ExecTaskTest):	FAILED
    [junit] unexpected log content 
            expected:<...ec/exec.xml ERROR!!![]/x1/gump/public/work...> 
            but was:<...ec/exec.xml ERROR!!![error at LeadPipeInputStream.read():  Pipe
broken]/x1/gump/public/work...>
    [junit] junit.framework.ComparisonFailure: unexpected log content 
            expected:<...ec/exec.xml ERROR!!![]/x1/gump/public/work...> 
            but was:<...ec/exec.xml ERROR!!![error at LeadPipeInputStream.read():  Pipe
broken]/x1/gump/public/work...>
    [junit] 	at junit.framework.Assert.assertEquals(Assert.java:81)
    [junit] 	at org.apache.tools.ant.taskdefs.ExecTaskTest.testRedirector13(ExecTaskTest.java:304)




ExecTaskTest:0294:     public void testRedirector13() {
ExecTaskTest:0295:         executeTarget("redirector13");
ExecTaskTest:0296:         if (getProject().getProperty("test.can.run") == null) {
ExecTaskTest:0297:             return;
ExecTaskTest:0298:         }
ExecTaskTest:0299:         String antfile = getProject().getProperty("ant.file");
ExecTaskTest:0300:         try {
ExecTaskTest:0301:             //no point in setting a message
ExecTaskTest:0302:             assertEquals(antfile + " OUTPUT???" + antfile + " ERROR!!!",
getLog());
ExecTaskTest:0303:         } catch (ComparisonFailure cf) {
ExecTaskTest:0304:             assertEquals("unexpected log content",
ExecTaskTest:0305:                 antfile + " ERROR!!!" + antfile + " OUTPUT???", getLog());
ExecTaskTest:0306:         }
ExecTaskTest:0307:     }



test.xml:0239:     <target name="redirector13" depends="init" if="test.can.run">
test.xml:0240:         <exec executable="sh">
test.xml:0241:             <redirector>
test.xml:0242:                 <outputfilterchain>
test.xml:0243:                     <replacestring from="out" to="OUTPUT???" />
test.xml:0244:                 </outputfilterchain>
test.xml:0245:                 <errorfilterchain>
test.xml:0246:                     <replacestring from="err" to="ERROR!!!" />
test.xml:0247:                 </errorfilterchain>
test.xml:0248:             </redirector>
test.xml:0249:             <arg value="parrot.sh" />
test.xml:0250:             <arg value="${ant.file}" />
test.xml:0251:         </exec>
test.xml:0252:     </target>

 

>-----Urspr√ľngliche Nachricht-----

>
>The following work was performed:
>http://vmgump.apache.org/gump/public/ant/test-ant/gump_work/build_ant_test-ant.html

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message