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

[C++] Test failures not propagated in Windows shared builds

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.13.0
    • 0.14.0
    • C++

    Description

      See https://github.com/google/googletest/issues/2261

      Try e.g. this change:

      diff --git a/cpp/src/arrow/buffer-test.cc b/cpp/src/arrow/buffer-test.cc
      index 9b0530e5c..ce7628f55 100644
      --- a/cpp/src/arrow/buffer-test.cc
      +++ b/cpp/src/arrow/buffer-test.cc
      @@ -35,6 +35,10 @@
       namespace arrow {
      
       TEST(TestAllocate, Bitmap) {
      +  auto buf1 = Buffer::FromString("a");
      +  auto buf2 = Buffer::FromString("b");
      +  AssertBufferEqual(*buf1, *buf2);
      +
         std::shared_ptr<Buffer> new_buffer;
         ARROW_EXPECT_OK(AllocateBitmap(default_memory_pool(), 100, &new_buffer));
         EXPECT_GE(new_buffer->size(), 13);
      

      On a Windows shared library build, it outputs this:

      [==========] Running 31 tests from 11 test cases.
      [----------] Global test environment set-up.
      [----------] 2 tests from TestAllocate
      [ RUN      ] TestAllocate.Bitmap
      ..\src\arrow\testing\gtest_util.cc(120): error: Value of: buffer.Equals(expected
      )
        Actual: false
      Expected: true
      [       OK ] TestAllocate.Bitmap (0 ms)
      [ RUN      ] TestAllocate.EmptyBitmap
      [       OK ] TestAllocate.EmptyBitmap (0 ms)
      [----------] 2 tests from TestAllocate (0 ms total)
      

      .... and the entire test file is marked passed.

      Attachments

        Issue Links

          Activity

            People

              wesm Wes McKinney
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 5.5h
                  5.5h