Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903057

jtreg hides error output from CompilerDirectivesFile (JSON parser)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      Jtreg tests fail without producing any error message (from the JSON parser) if there is an error in the CompilerDirectivesFile. This can be demonstrated by using "-XX:CompilerDirectivesFile=/dev/null".

      Using "make run-test" with a jtreg test will result in:

      Running tests using TEST_OPTS control variable 'VM_OPTIONS=-XX:CompilerDirectivesFile=/dev/null'
      Test selection 'jdk/incubator/vector/Short64VectorTests.java', will run:
      * jtreg:open/test/jdk/jdk/incubator/vector/Short64VectorTests.java

      Running test 'jtreg:open/test/jdk/jdk/incubator/vector/Short64VectorTests.java'
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.


      A similar run with a gtest will show the error from the JSON parser:

      Running tests using TEST_OPTS control variable 'VM_OPTIONS=-XX:CompilerDirectivesFile=/dev/null'
      Test selection 'gtest:codestrings', will run:
      * gtest:codestrings/server

      Running test 'gtest:codestrings/server'
      Note: Google Test filter = codestrings*
      [==========] Running 1 test from 1 test case.
      [----------] Global test environment set-up.
      [----------] 1 test from codestrings
      [ RUN ] codestrings.validate_vm
      Syntax error on line 1 byte 1: EOS was encountered before any json declarations
        Got EOS.

      Parsing of compiler directives failed
      Could not load file: /dev/null

            Unassigned Unassigned
            phedlin Patric Hedlin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: