<AWT Dev> RFR [XS] 8229023: make java/awt/print/PrinterJob/SameService.java Windows-only , was : question regarding test java/awt/PrinterJob/SameService.java (tests that print services are not re-created)
matthias.baesken at sap.com
Fri Aug 2 11:36:11 UTC 2019
Hello, please review the following small test adjustment .
It makes the test java/awt/print/PrinterJob/SameService.java Windows-only.
Reason is that in some cases the print service is recreated on Linux .
( we observed this in ~ 30 % of test runs on one of our test machines )
Hello, I have a question regarding the test java/awt/PrinterJob/SameService.java ; the test deals with @bug 6446094 .
It checks that print services are not re-created , which was addressed (or at least discussed ) in 6446094 ,
Win32PrintServiceLookup.getPrintServiceByName() should not recreate duplicate instances.
However 6446094 just talks about Windows , and I see sporadic failures on some Linux test machine in java/awt/PrinterJob/SameService.java
because the print service is (seldom) recreated on Linux ( it is even non-deterministic, on the same machine the test fails in ~ 30 % of runs and succeeds in the other cases ) .
Can we make the test Windows-only ( I think the API does not guarantee that print services are not re-created , although it is desired ) ?
Best regards, Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the awt-dev