RFR: 8377602: Create automated test for PageRange [v2]
Alexey Ivanov
aivanov at openjdk.org
Fri Feb 27 12:45:21 UTC 2026
On Fri, 27 Feb 2026 03:09:55 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> Whatever! I can change the extension, if you insist—it's not the point of the test at all.
>>
>> For me, the file inside starts with `%PDF-1.7`.
>>
>> How do I open `.prn` file? I remember I renamed `.prn` to `.pdf` quite a few times to view the result, and it always worked for me.
>
> It seems it depends on the printer creating the file and xpif is generated by Xerox printer which is what I am using.
>
> Anyways, I am not insisting on any change...I was just trying to open the file to see if pageranges are printed ok
>
> If the files are not point of the test, then I think it should be generated in special debugging case like what we do for saving image by passing "-save" as argument to test..
It is not possible… Printing has to occur, yet there's no need to print pages on a real printer—printing to a file is enough.
The test could remove the produced file, but I see no reason to do so. Firstly, jtreg removes any files from the `scratch` directory; secondly, you can use the files to visually verify the range of printed pages… which could be invaluable if the test fails.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29660#discussion_r2864165620
More information about the client-libs-dev
mailing list