Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-38689

TempDirs inside DEATH_TESTs don't get cleaned up

    • Fully Compatible
    • ALL
    • Service Arch 2022-06-27

      This causes ever-growing debris to accumulate in /tmp which is often a ramdisk. One solution would be to take advantage of the fact that DEATH_TESTs already examine stdout, and just look for the lines that start with "Created temporary directory:". Another would be to create a TempDir in the parent process and make the child pass that to TempDir::setTempPath, but that will create the TempDir even for tests that don't need it.

            Assignee:
            vojislav.stojkovic@mongodb.com Vojislav Stojkovic
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: