Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-3986

Support running tests with a simple, non-asserting (and possibly shared) Random

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • general/test
    • None
    • New

    Description

      Robert asked for it. Calling random() (and its methods) can obscure memory visibility issues (because random() is thread local, context-sensitive, etc.). An option (or randomly selected mode) of running with a simple Random (static/ test method level only) would simulate the framework as it was before (reading – possibly non-reproducible thread races but at the same time testing memory visibility issues in the core code).

      Attachments

        Activity

          People

            dweiss Dawid Weiss
            dweiss Dawid Weiss
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: