Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-1279

Use ASSERT_NO_FATAIL_FAILURE in C++ unit tests

    XMLWordPrintableJSON

Details

    Description

      A number of unit tests have helper functions that use gtest/arrow ASSERT_ macros. Those ASSERT_ macros simply return out of the current context and do not throw exceptions or abort. Since these helper functions return void, the unit test simply continues when the assertions are triggered. This can lead to additional failures, such as segfaults because the test is executing code that it did not expect to. By adding the gtest ASSERT_NO_FATAIL_FAILURE to the calls of those helper functions in the outermost scope of the unit test, the test will correctly terminate.

      Attachments

        Issue Links

          Activity

            People

              joshuastorck Joshua Storck
              joshuastorck Joshua Storck
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: