Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-4757

Macros in testutil/gtest-util.h evaluate their arguments twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 2.8.0
    • Impala 2.9.0
    • Infrastructure
    • None

    Description

      I just discovered that the macros are written such that they evaluate their arguments twice. This can have confusing consequences if the argument is a function with side-effects.

      Attachments

        Activity

          People

            tarmstrong Tim Armstrong
            tarmstrong Tim Armstrong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: