Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-48466

Tests in CheckpointDurabilityTest is never instantiated

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 7.1.0
    • 7.1.0
    • couchbase-bucket
    • None
    • 1
    • KV-Engine-Sept-21, KV 2021-Oct-21

    Description

      The parameterized test needs to be instantiated in order to be executed and cause Googletest 1.11.0 to fail:

      ./ep-engine_ep_unit_tests --gtest_filter='GoogleTestVerification.UninstantiatedParameterizedTestSuite<CheckpointDurabilityTest>'
      Note: Google Test filter = GoogleTestVerification.UninstantiatedParameterizedTestSuite<CheckpointDurabilityTest>
      [==========] Running 1 test from 1 test suite.
      [----------] Global test environment set-up.
      [----------] 1 test from GoogleTestVerification
      [ RUN      ] GoogleTestVerification.UninstantiatedParameterizedTestSuite<CheckpointDurabilityTest>
      ../kv_engine/engines/ep/tests/module_tests/checkpoint_durability_test.cc:64: Failure
      Parameterized test suite CheckpointDurabilityTest is defined via TEST_P, but never instantiated. None of the test cases will run. Either no INSTANTIATE_TEST_SUITE_P is provided or the only ones provided expand to nothing.
       
      Ideally, TEST_P definitions should only ever be included as part of binaries that intend to use them. (As opposed to, for example, being placed in a library that may be linked in to get other utilities.)
       
      To suppress this error for this test suite, insert the following line (in a non-header) in the namespace it is defined in:
       
      GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(CheckpointDurabilityTest);
      [  FAILED  ] GoogleTestVerification.UninstantiatedParameterizedTestSuite<CheckpointDurabilityTest> (0 ms)
      [----------] 1 test from GoogleTestVerification (0 ms total)
       
      [----------] Global test environment tear-down
      [==========] 1 test from 1 test suite ran. (0 ms total)
      [  PASSED  ] 0 tests.
      [  FAILED  ] 1 test, listed below:
      [  FAILED  ] GoogleTestVerification.UninstantiatedParameterizedTestSuite<CheckpointDurabilityTest>
       
       1 FAILED TEST
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            trond Trond Norbye
            trond Trond Norbye
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty