You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/04/29 20:46:16 UTC

[jira] [Commented] (PDFBOX-2034) TestFilters is non-deterministic

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

Tilman Hausherr commented on PDFBOX-2034:
-----------------------------------------

Done in rev 1591050 for the trunk and rev 1591051 for the 1.8 branch. It now does 10 loops based on a fixed seed and 10 loops based on a truly (according to the javadoc) random seed. Will set to resolved after the release of 1.8.5. (of which this fix won't be part of)

> TestFilters is non-deterministic
> --------------------------------
>
>                 Key: PDFBOX-2034
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2034
>             Project: PDFBox
>          Issue Type: Improvement
>    Affects Versions: 1.8.5, 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Minor
>              Labels: LZW
>
> This is a follow-up of PDFBOX-1977, which was created by John.
> ====
> 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.
> ====
> So what we need is:
> - a set of [deterministic tests|http://martinfowler.com/articles/nonDeterminism.html]
> - a set of non-deterministic tests
> To see why, see the discussion in PDFBOX-1977.



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