assert is not defined for unit tests

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot
    • None
    • b127

      gtest/gtest.h include assert.h which will define the assert macro, but hotspot has its own standards incompatible assert macro that takes two parameter. The workaround is to undef assert and then re-define it. The re-definition must unfortunately be copied since debug.hpp might already have been included and a second include wouldn't work due to the header guards in debug.hpp.

            Assignee:
            Erik Helin
            Reporter:
            Erik Helin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: