diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2017-07-09 18:48:11 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2017-07-09 18:48:11 +0000 |
commit | 386c50cf0a9c3d5c1e481fb76ee2f17a12b3fc44 (patch) | |
tree | fa67dc34237bad2021fdfee3956ebfd4f732de2c /src | |
parent | 1b1f15c27c73197bc256220644440a2d0874d9aa (diff) | |
parent | a50b4765780adbbf637ba0ea2190b33260d4c38e (diff) | |
download | nix-386c50cf0a9c3d5c1e481fb76ee2f17a12b3fc44.zip |
Merge #660
660: Fix double close bugs in test_lseek and test_lseek64 r=asomers
std::fs::File closes the underlying file descriptor on Drop, without
checking for errors. test_lseek and test_lseek64 also manually close
the file descriptor. That works for single threaded test runs. But for
multithreaded runs, it causes EBADF errors in other tests. Fix the
tests by consuming the File with into_raw_fd(), so its drop method will
never be called.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions