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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Impala 2.8.0
    • Fix Version/s: Impala 2.9.0
    • Component/s: Infrastructure
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: