This is the mail archive of the mauve-patches@sourceware.org mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: harness fix + exception print


I'm checking this in.

This fixes a harness typo and changes the server socket test to print
stack traces.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* gnu/testlet/java/net/ServerSocket/BasicSocketServer.java (init):
	Print exception.
	(run): Likewise.
	* Harness.java (printHelpMessage): Typo fix.

Index: Harness.java
===================================================================
RCS file: /cvs/mauve/mauve/Harness.java,v
retrieving revision 1.27
diff -u -r1.27 Harness.java
--- Harness.java 20 Oct 2006 01:38:38 -0000 1.27
+++ Harness.java 12 Feb 2007 22:26:49 -0000
@@ -1,4 +1,4 @@
-// Copyright (c) 2006  Red Hat, Inc.
+// Copyright (c) 2006, 2007  Red Hat, Inc.
 // Written by Anthony Balkissoon <abalkiss@redhat.com>
 
 // This file is part of Mauve.
@@ -595,7 +595,7 @@
       "run the tests in its subfolders\n" +
       "  -file [filename]:        specifies a file that contains the names " +
       "of tests to be run (one per line)\n" +
-      "  -interactive:            only run interavtice tests, if not set, " +
+      "  -interactive:            only run interactive tests, if not set, " +
       "only run non-interactive tests\n" +
       // Output Options.
       "\n\nOutput Options:\n" +
Index: gnu/testlet/java/net/ServerSocket/BasicSocketServer.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/net/ServerSocket/BasicSocketServer.java,v
retrieving revision 1.6
diff -u -r1.6 BasicSocketServer.java
--- gnu/testlet/java/net/ServerSocket/BasicSocketServer.java 3 Jun 2004 14:31:11 -0000 1.6
+++ gnu/testlet/java/net/ServerSocket/BasicSocketServer.java 12 Feb 2007 22:27:05 -0000
@@ -1,7 +1,7 @@
 // Tags: not-a-test
 
 /*
-   Copyright (C) 1999 Hewlett-Packard Company
+   Copyright (C) 1999, 2007 Hewlett-Packard Company
 
    This file is part of Mauve.
 
@@ -42,6 +42,7 @@
     catch (Exception e) {
       System.out.println("Error : BasicSocketServer::init failed " + 
 			 "exception in new ServerSocket(...) " + e);
+      harness.debug(e);
     }
   }
   
@@ -68,6 +69,7 @@
       catch (Exception e) {
 	System.out.println("Error : BasicSocketServer::run failed - 2" + 
 			   "exception was thrown");
+	harness.debug(e);
       }
     }
     try {
@@ -77,6 +79,7 @@
     catch (Exception e) {
       System.out.println("Error : BasicSocketServer::run failed - 3" + 
 			 "exception was thrown");
+      harness.debug(e);
     }
   }
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]