# CTest leaves a file descriptor open before executing tests

**URL:** https://discourse.cmake.org/t/ctest-leaves-a-file-descriptor-open-before-executing-tests/578
**Category:** Usage
**Tags:** os:linux
**Created:** [February 4, 2020, 6:26pm UTC](https://discourse.cmake.org/t/ctest-leaves-a-file-descriptor-open-before-executing-tests/578 "2020-02-04T18:26:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lfyuomr-gylo](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@lfyuomr-gylo](https://discourse.cmake.org/u/lfyuomr-gylo)
#### Post date: [February 4, 2020, 6:26pm UTC](https://discourse.cmake.org/t/ctest-leaves-a-file-descriptor-open-before-executing-tests/578/1 "2020-02-04T18:26:56Z")

</div>

I have a problem with observing an extra file descriptor during my tests execution via `ctest`.

I have described my issue here on StackOverflow:

> <https://stackoverflow.com/questions/60063331/ctest-leaves-a-file-descriptor-open-before-executing-tests>

I have two questions (copied from my StackOverflow issue):

1. Is it a bug or a feature? For me it seems to be a bug since I have no idea for what purpose this extra file descriptor may be left open before execution of my test, but I’m quite new to C++ infrastructure and may miss something.
2. Is there any way to overcome the problem without changing the test code, i.e. by manipulating `ctest` flags?
