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

Use google test string comparison macros

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 22
    • 22
    • hotspot
    • b12

    Description

      The google test suite offers some neat macros for comparing strings. We should use those instead of raw strcmp or strstr where possible. Code is more readable. Also, the macros print out the values of the strings automatically in case of a failure, which saves having to add them via "<<".

      Attachments

        Issue Links

          Activity

            People

              stuefe Thomas Stuefe
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: