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

RunTest sometimes fails to produce valid exitcode.txt

XMLWordPrintable

    • b20

        When RunTest.gmk runs jtreg tests, it prints the exitcode of jtreg into a file named exitcode.txt. Soemtimes, this fails and the exitcode.txt file is left empty. This is causing trouble in automated testing where the surrounding framework is expecting to check the result in that file.

        I believe this is caused by a race in bash. We have seen similar races before and there is even a comment about it in the documentation for the ExecuteWithLog macro. If there is redirect of stdout in a command executed by ExecuteWithLog, that command must be surrounded by parens to run in a subshell.

        I will try putting parens around the jtreg and other test framework calls in RunTest.gmk.

              erikj Erik Joelsson
              erikj Erik Joelsson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: