]> git.ipfire.org Git - pakfire.git/commitdiff
tests: execute: Bring back the open file descriptor test
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 25 Mar 2025 11:36:41 +0000 (11:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 25 Mar 2025 11:36:41 +0000 (11:36 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/python/execute.py

index 791e397d1bbd07a39efa320fa78ac3794d461f55..d8b0c0275f0377071eb8e81b652e635b55988a15 100755 (executable)
@@ -132,12 +132,12 @@ class ExecuteTests(tests.TestCase):
                with self.assertRaises(OSError):
                        self.pakfire.execute(["/command", "print-nice"], nice=100)
 
-       #def test_check_open_file_descriptors(self):
-       #       """
-       #               Since we are spawning child processes, it might happen that we leak file
-       #               descriptors to the child process.
-       #       """
-       #       self.pakfire.execute(["/command", "check-open-file-descriptors"])
+       def test_check_open_file_descriptors(self):
+               """
+                       Since we are spawning child processes, it might happen that we leak file
+                       descriptors to the child process.
+               """
+               self.pakfire.execute(["/command", "check-open-file-descriptors"])
 
        # Signals