Author: dfabulich
Date: Sat Jan 26 11:39:47 2008
New Revision: 615474

URL: http://svn.apache.org/viewvc?rev=615474&view=rev
Log:
This test needs to handle non-zero exit codes (didn't notice on non-Windows 
systems)

Modified:
    
maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/TestNgExecuteErrorTest.java

Modified: 
maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/TestNgExecuteErrorTest.java
URL: 
http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/TestNgExecuteErrorTest.java?rev=615474&r1=615473&r2=615474&view=diff
==============================================================================
--- 
maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/TestNgExecuteErrorTest.java
 (original)
+++ 
maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/TestNgExecuteErrorTest.java
 Sat Jan 26 11:39:47 2008
@@ -2,6 +2,8 @@
 
 
 import junit.framework.TestCase;
+
+import org.apache.maven.it.VerificationException;
 import org.apache.maven.it.Verifier;
 import org.apache.maven.it.util.ResourceExtractor;
 
@@ -22,7 +24,9 @@
         File testDir = ResourceExtractor.simpleExtractResources( getClass(), 
"/testng-execute-error" );
 
         Verifier verifier = new Verifier( testDir.getAbsolutePath() );
-        verifier.executeGoal( "test" );
+        try {
+            verifier.executeGoal( "test" );
+        } catch (VerificationException e) {} // expected 
         verifier.resetStreams();
         assertTrue( new File( testDir, 
"target/surefire-reports/TestSuite-output.txt" ).length() > 0 );
     }


Reply via email to