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

Async UL: gtests check for drop mode incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • None

      Async UL gtests do not check which asynchronous mode it's operating in, leading to test failures such as the one below:

      gtest/AsyncLogGtest shows now this error, is this related (example from Linux aarch64 but we see errors on multiple platforms) :

      [ OK ] AsyncLogTest.droppingMessage_vm (0 ms)
      [ RUN ] AsyncLogTest.StallingModePreventsDroppedMessages_vm
      /priv/jenkins/client-home/workspace/openjdk-jdk-linux_aarch64-dbg/jdk/test/hotspot/gtest/logging/test_asynclog.cpp:264: Failure
      Value of: file_contains_substring(TestLogFileName, "messages dropped due to async logging")
        Actual: true
      Expected: false

      [ FAILED ] AsyncLogTest.StallingModePreventsDroppedMessages_vm (0 ms)
      [ RUN ] AsyncLogTest.stdoutOutput_vm
      [ OK ] AsyncLogTest.stdoutOutput_vm (0 ms)
      [ RUN ] AsyncLogTest.stderrOutput_vm
      [ OK ] AsyncLogTest.stderrOutput_vm (1 ms)
      [----------] 7 tests from AsyncLogTest (522 ms total)

      [----------] Global test environment tear-down
      [==========] 7 tests from 1 test suite ran. (522 ms total)
      [ PASSED ] 6 tests.
      [ FAILED ] 1 test, listed below:
      [ FAILED ] AsyncLogTest.StallingModePreventsDroppedMessages_vm

            jsjolen Johan Sjölen
            jsjolen Johan Sjölen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: