Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4151

Incorrect Test Registration with Static TestFnCtx

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.20.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      TestSuite_Add() and TestSuite_AddLive() are expected to be called with several TestFunc objects to register a test function with the provided test suite. However, the static TestFnCtx ctx; generated by TestSuite_AddFullWithTestFn() is modified on each call, affecting the shared state of the ctx registered in each Test object set in _V_TestSuite_AddFull().

            Assignee:
            ezra.chung@mongodb.com Ezra Chung
            Reporter:
            ezra.chung@mongodb.com Ezra Chung
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: