[libcxx-commits] [PATCH] D58732: [libcxx] Portability fix: close an open file stream before removing the file.
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Feb 28 17:32:01 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rCXX355162: [libc++] Fix forgotten fclose() in unit test (authored by ldionne, committed by ).
Repository:
rCXX libc++
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58732/new/
https://reviews.llvm.org/D58732
Files:
test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.put/xsputn.PR14074.pass.cpp
Index: test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.put/xsputn.PR14074.pass.cpp
===================================================================
--- test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.put/xsputn.PR14074.pass.cpp
+++ test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.put/xsputn.PR14074.pass.cpp
@@ -34,6 +34,7 @@
std::size_t count = 0;
while (std::fgetc(f) != EOF)
++count;
+ std::fclose(f);
return count;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58732.188822.patch
Type: text/x-patch
Size: 553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190301/74bb39a3/attachment-0001.bin>
More information about the libcxx-commits
mailing list