7014796: Regression test java/awt/PrintJob/Text/stringwidth.sh cannot be terminated on Windows.
authorjgodinez
Fri, 04 Feb 2011 11:46:37 -0800
changeset 8361 8fdb7edee781
parent 8129 54c848224b7b
child 8362 c60f5297be94
7014796: Regression test java/awt/PrintJob/Text/stringwidth.sh cannot be terminated on Windows. Reviewed-by: prr
jdk/test/java/awt/PrintJob/Text/StringWidth.java
--- a/jdk/test/java/awt/PrintJob/Text/StringWidth.java	Thu Jan 27 16:43:28 2011 -0500
+++ b/jdk/test/java/awt/PrintJob/Text/StringWidth.java	Fri Feb 04 11:46:37 2011 -0800
@@ -63,7 +63,8 @@
   }
 
   public static void main(String[] args) {
-    new StringWidth();
+    StringWidth sw = new StringWidth();
+    sw.dispose();
   }
 
 }