Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8370468

Test Framework: add steps for reproduction to template_framework/library/TestFrameworkClass.java

XMLWordPrintable

      ./test/hotspot/jtreg/compiler/lib/template_framework/library/TestFrameworkClass.java

      People that need to triage test failures sometimes struggle with extracting the test to something executable.

      We should add some comments to the generated code, so that when it is extracted, it is relatively simple to transform the generated code to an executable JTREG test.

      I have written down in JDK-8366845 what I did there:

      How I extracted the test:
      - I saw that the test compiler.loopopts.superword.templated.AliasingFuzzer::test_989 crashed in compilation.
      - Downloaded the workspace, searched for AliasingFuzzer.java
      - Took the whole file, slapped a jtreg launcher part at the top, removed framework.addFlags line, and launched it with JTREG.
      - And of course I made sure to run it with -XX:UseAVX=2 because I have an avx512 machine

      JDK-8370459 also has steps for reproduction.

            epeter Emanuel Peter
            epeter Emanuel Peter
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: