Skip to content
Permalink
Browse files
8198343: Test java/awt/print/PrinterJob/TestPgfmtSetMPA.java may fail…
… w/o printer

Reviewed-by: jdv, trebari
  • Loading branch information
prsadhuk committed Feb 3, 2021
1 parent c008410 commit cb127a4bb5d95d19eb1f5e625b600311a2490135
Showing with 5 additions and 1 deletion.
  1. +0 −1 test/jdk/ProblemList.txt
  2. +5 −0 test/jdk/java/awt/print/PrinterJob/TestPgfmtSetMPA.java
@@ -254,7 +254,6 @@ java/awt/image/DrawImage/IncorrectAlphaSurface2SW.java 8056077 linux-all
java/awt/image/DrawImage/BlitRotateClippedArea.java 8255724 linux-all
java/awt/image/multiresolution/MultiresolutionIconTest.java 8169187 macosx-all,windows-all
java/awt/print/Headless/HeadlessPrinterJob.java 8196088 windows-all
java/awt/print/PrinterJob/TestPgfmtSetMPA.java 8198343 generic-all
sun/awt/datatransfer/SuplementaryCharactersTransferTest.java 8011371 generic-all
sun/awt/shell/ShellFolderMemoryLeak.java 8197794 windows-all
sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java 8022403 generic-all
@@ -23,6 +23,7 @@
/*
* @test
* @bug 6789262
* @key printer
* @summary Verifies if getPageFormat returns correct mediaprintable value
* @run main TestPgfmtSetMPA
*/
@@ -38,6 +39,10 @@ public static void main(String args[]) {
PrinterJob job;

job = PrinterJob.getPrinterJob();
if (job.getPrintService() == null) {
System.out.println("No printers. Test cannot continue");
return;
}

PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();

0 comments on commit cb127a4

Please sign in to comment.