8158758: [TEST_BUG] test/java/awt/print/PrinterJob/LandscapeStackOverflow.java fails on timeout
Reviewed-by: yan
--- a/jdk/test/java/awt/print/PrinterJob/LandscapeStackOverflow.java Thu Jun 09 14:21:42 2016 +0300
+++ b/jdk/test/java/awt/print/PrinterJob/LandscapeStackOverflow.java Fri Jun 10 15:20:59 2016 +0530
@@ -22,7 +22,7 @@
*/
/*
* @test
- * @bug 6842011
+ * @bug 6842011 8158758
* @summary Test if StackOverflowError occurs during printing landscape with
* scale and transform.
* @run main LandscapeStackOverflow
@@ -47,9 +47,6 @@
PrintRequestAttributeSet attributes = new HashPrintRequestAttributeSet();
attributes.add( OrientationRequested.LANDSCAPE );
- boolean print = printjob.printDialog( attributes );
- if( !print ) return;
-
try {
printjob.setPrintable( new Painter() );
printjob.print( attributes );