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

[test] improve assertEquals failure output

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 23
    • 21, 22, 23
    • infrastructure
    • None
    • b12
    • generic
    • generic

    Description

      Currently assertEquals has in the failure case sometimes confusing output like :

      java.lang.RuntimeException: VM output should contain exactly one RTM locking statistics entry for method compiler.rtm.locking.TestRTMTotalCountIncrRate$Test::lock: expected 0 to equal 1
             at jdk.test.lib.Asserts.fail(Asserts.java:634)
             at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)

      (I don't think we really expected that for some reason 0 equals 1)
      This should be improved.

      Attachments

        Issue Links

          Activity

            People

              mbaesken Matthias Baesken
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: