[libcxx-commits] [libcxx] r355162 - [libc++] Fix forgotten fclose() in unit test
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Feb 28 17:32:45 PST 2019
Author: ldionne
Date: Thu Feb 28 17:32:44 2019
New Revision: 355162
URL: http://llvm.org/viewvc/llvm-project?rev=355162&view=rev
Log:
[libc++] Fix forgotten fclose() in unit test
Thanks to Andrey Maksimov for the patch.
Differential Revision: https://reviews.llvm.org/D58732
Modified:
libcxx/trunk/test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.put/xsputn.PR14074.pass.cpp
Modified: libcxx/trunk/test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.put/xsputn.PR14074.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.put/xsputn.PR14074.pass.cpp?rev=355162&r1=355161&r2=355162&view=diff
==============================================================================
--- libcxx/trunk/test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.put/xsputn.PR14074.pass.cpp (original)
+++ libcxx/trunk/test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.put/xsputn.PR14074.pass.cpp Thu Feb 28 17:32:44 2019
@@ -34,6 +34,7 @@ static std::size_t count_bytes(char cons
std::size_t count = 0;
while (std::fgetc(f) != EOF)
++count;
+ std::fclose(f);
return count;
}
More information about the libcxx-commits
mailing list