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

SIZE_FORMAT_HEX macro undefined in gtest

XMLWordPrintable

    • b13
    • generic
    • linux

        SIZE_FORMAT_HEX macro undefined in test/hotspot/gtest/runtime/test_virtualMemoryTracker.cpp.
        The SIZE_FORMAT_HEX macro should be replace as "0x%zx" instead.

        How to reproduce the undefined compile error:
        Uncomment the line '// #define LOG(...) printf(__VA_ARGS__); printf("\n"); fflush(stdout);' and comment the line '#define LOG(...)', and then make:

        bash configure --with-gtest=/home/yansendao/git/googletest-v1.14.x --with-extra-cflags="-DLOG_PLEASE" --with-extra-cxxflags="-DLOG_PLEASE" --with-debug-level=fastdebug
        time make CONF=linux-x86_64-server-fastdebug LOG=trace images test-image &> build/make.log

        How to run the gtest test:

        ./build/linux-x86_64-server-release/images/test/hotspot/gtest/server/gtestLauncher -jdk build/linux-x86_64-server-release/images/jdk/ --gtest_filter=NMT*:os* -XX:NativeMemoryTracking=detail &> gtest.log

              syan Sendao Yan (Inactive)
              syan Sendao Yan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: