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

Add convenience testutil functions for sentinel files

    • Type: Icon: Technical Debt Technical Debt
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.2.0, 7.2.0-rc0, 7.1.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • None

      Summary

      A common pattern in csuite tests is that we create empty sentinel files in the database directory to indicate that something has finished, e.g., a backup or a checkpoint. As this is a common pattern, we should add convenience functions for it.

      Suggested approach

      We should add the following functions:

      • A function to create a sentinel file, e.g., testutil_sentinel(dir, file)
      • A function to check whether a file exists. We can possibly have two variants, e.g.,  testutil_exists(file) and testutil_exists2(dir, file) (I'm not sure if this is the best name though.)

       

            Assignee:
            peter.macko@mongodb.com Peter Macko
            Reporter:
            peter.macko@mongodb.com Peter Macko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: