Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-7206

Update test framework to align with C++ style

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT10.0.0, 4.9.0, 4.4.5
    • Component/s: None
    • Labels:
      None

      Description

      Error handling routine consistency:

      • Replace all instances of WT_RET with a new function that does something similar to:
        check_success(int errorcode, _LINE_) and aborts the test program in case of an error.

      Configuration parser:

      • Update the configuration_settings.h to return a std::optional instead of return an error code and passing a pointer, effectively converting from C style to C++ style.

      Main function of poc.cxx:

      • Return error code instead of exception when parsing args

      random_generator class:

      • random_generator should delete copy constructor and = operator

        Attachments

          Activity

            People

            Assignee:
            etienne.petrel Etienne Petrel
            Reporter:
            luke.pearson Luke Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: