[ 
https://issues.apache.org/jira/browse/PDFBOX-1977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13932163#comment-13932163
 ] 

Tilman Hausherr commented on PDFBOX-1977:
-----------------------------------------

This is getting into a philosophical discussion. But I think that both have 
their advantage, i.e. fixed tests, but also totally random tests that tell a 
seed so that they can be repeated later.

John, you didn't answer how you found this fail. I suspect that the test was 
run for a longer time, although a "lucky" hit might also be the reason. Anyway, 
it is great that you found it, because it showed a real problem.

> LZWFilter fails / TestFilters is non-determinate
> ------------------------------------------------
>
>                 Key: PDFBOX-1977
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1977
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.8.5, 2.0.0
>            Reporter: John Hewson
>            Assignee: Tilman Hausherr
>              Labels: LZW
>             Fix For: 1.8.5, 2.0.0
>
>
> TestFilters uses Random().nextLong() to generate a seed for random data, 
> which means that it is non-determinate. Depending on the seed value, the test 
> may fail or succeed.
> Using the following seed results in the LZW filter failing:
> final long seed = -6257105096642706464L;



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to