-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tst: fix file descriptor leaks (#5568)
This is a step towards fixing the `testinstall` test suite on macOS, where the maximum number of file descriptors seems to exactly match our limit, so any leaked descriptor causes the 'too many open files' test in `tst/testinstall/streams.tst` to fail in an unexpected way (namely because instead of the expected error, OutputTextFile returns 'fail'). Co-authored-by: Chris Jefferson <caj21@st-andrews.ac.uk>
- Loading branch information
1 parent
da64791
commit e00b01f
Showing
4 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ gap> List([0..255], i-> ReadByte(f)) = a; | |
true | ||
gap> RemoveFile(fnam); | ||
true | ||
gap> CloseStream(f); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters