sebb 2003/12/03 04:11:16
Modified: src/jorphan/org/apache/jorphan/test AllTests.java
Log:
Try to find cause of Gump GUI bug
Revision Changes Path
1.9 +20 -7 jakarta-jmeter/src/jorphan/org/apache/jorphan/test/AllTests.java
Index: AllTests.java
===================================================================
RCS file:
/home/cvs/jakarta-jmeter/src/jorphan/org/apache/jorphan/test/AllTests.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- AllTests.java 2 Dec 2003 18:48:23 -0000 1.8
+++ AllTests.java 3 Dec 2003 12:11:16 -0000 1.9
@@ -168,9 +168,22 @@
String e = "java.awt.headless";
String g="java.awt.graphicsenv";
+ System.out.println("+++++++++++");
System.out.println(e+"="+System.getProperty(e));
- System.out.println(g+"="+System.getProperty(g));
-// don't call any graphics routines here, as some have side effects
+ String n=System.getProperty(g);
+ System.out.println(g+"="+n);
+
+ try {//
+ Class c = Class.forName(n);
+ System.out.println("Found class: "+n);
+// c.newInstance();
+// System.out.println("Instantiated: "+n);
+ } catch (Exception e1) {
+ System.out.println("Error finding class "+n+" "+e1);
+ }
+
+ System.out.println("------------");
+// don't call isHeadless() here, as it has a side effect.
//--
TestSuite suite = suite(args[0]);
// Jeremy Arnold: This method used to attempt to write results to
@@ -182,19 +195,19 @@
TestRunner.run(suite);
//++
// Recheck settings:
+ System.out.println("+++++++++++");
System.out.println(e+"="+System.getProperty(e));
System.out.println(g+"="+System.getProperty(g));
System.out.println("Headless?
"+java.awt.GraphicsEnvironment.isHeadless());
- Class c;
try {
- String n=System.getProperty(g);
- c = Class.forName(n);
+ Class c = Class.forName(n);
System.out.println("Found class: "+n);
c.newInstance();
System.out.println("Instantiated: "+n);
} catch (Exception e1) {
- e1.printStackTrace();
+ System.out.println("Error with class "+n+" "+e1);
}
+ System.out.println("------------");
//--
System.exit(0);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]