Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-4869

[C++] Use of gmock fails in compute/kernels/util-internal-test.cc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • C++

    Description

      Out of the box build with

      cmake .. -DARROW_BUILD_TESTS=ON -DARROW_BUILD_BENCHMARKS=ON -DARROW_PARQUET=ON -DARROW_GANDIVA=ON -DARROW_FLIGHT=ON -DARROW_BOOST_VENDORED=ON
      
      [ 57%] Building CXX object src/arrow/ipc/CMakeFiles/arrow-ipc-json-simple-test.dir/json-simple-test.cc.o
      /home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util-internal-test.cc:152:3: error: reference to non-static member function must be called; did you mean to call it with no arguments?
        ((mock).gmock_out_type).InternalExpectedAt("/home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util-internal-test.cc", 152, "mock", "out_type").WillRepeatedly(Return(boolean()));
        ^~~~~~~~~~~~~~~~~~~~~~~
                               ()
      /home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util-internal-test.cc:173:3: error: reference to non-static member function must be called; did you mean to call it with no arguments?
        ((mock).gmock_out_type).InternalExpectedAt("/home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util-internal-test.cc", 173, "mock", "out_type").WillRepeatedly(Return(int32()));
        ^~~~~~~~~~~~~~~~~~~~~~~
                               ()
      /home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util-internal-test.cc:192:3: error: reference to non-static member function must be called; did you mean to call it with no arguments?
        ((mock).gmock_out_type).InternalExpectedAt("/home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util-internal-test.cc", 192, "mock", "out_type").WillRepeatedly(Return(boolean()));
        ^~~~~~~~~~~~~~~~~~~~~~~
                               ()
      /home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util-internal-test.cc:213:3: error: reference to non-static member function must be called; did you mean to call it with no arguments?
        ((mock).gmock_out_type).InternalExpectedAt("/home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util-internal-test.cc", 213, "mock", "out_type").WillRepeatedly(Return(int32()));
        ^~~~~~~~~~~~~~~~~~~~~~~
                               ()
      4 errors generated.
      make[2]: *** [src/arrow/compute/kernels/CMakeFiles/arrow-compute-util-internal-test.dir/util-internal-test.cc.o] Error 1
      make[1]: *** [src/arrow/compute/kernels/CMakeFiles/arrow-compute-util-internal-test.dir/all] Error 2
      make[1]: *** Waiting for unfinished jobs....
      

      Attachments

        Issue Links

          Activity

            People

              bkietz Ben Kietzman
              wesm Wes McKinney
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m