Skip to content

Commit

Permalink
Create failing test case for uv.fs_read leak
Browse files Browse the repository at this point in the history
  • Loading branch information
creationix committed Oct 31, 2014
1 parent 3e955aa commit 42a17b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libuv
Submodule libuv updated 3 files
+2 −3 README.md
+6 −7 src/win/fs.c
+4 −8 test/test-fs.c
2 changes: 2 additions & 0 deletions tests/test-leaks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ return require('lib/tap')(function (test)
bench(uv, p, 0x500, function ()
local req = assert(uv.fs_open("README.md", "r", mode, expect(function (err, fd)
assert(not err, err)
local stat = assert(uv.fs_fstat(fd))
assert(uv.fs_read(fd, stat.size, 0))
assert(uv.fs_close(fd, expect(function (err)
assert(not err, err)
end)))
Expand Down

0 comments on commit 42a17b8

Please sign in to comment.