From 3279667810debcc7c1db78407e60ae0b1cc7ed03 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sun, 12 Mar 2017 22:52:36 +0100 Subject: community/lua-mpack: add check function --- community/lua-mpack/skip-memleak-test.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 community/lua-mpack/skip-memleak-test.patch (limited to 'community/lua-mpack/skip-memleak-test.patch') diff --git a/community/lua-mpack/skip-memleak-test.patch b/community/lua-mpack/skip-memleak-test.patch new file mode 100644 index 0000000000..1f8b287dd7 --- /dev/null +++ b/community/lua-mpack/skip-memleak-test.patch @@ -0,0 +1,20 @@ +This test requires binary to be built in debug mode. +--- a/binding/lua/test.lua ++++ b/binding/lua/test.lua +@@ -276,16 +276,6 @@ + end) + end) + +- it('should not leak memory', function() +- -- get the path to the lua interpreter, taken from +- -- http://stackoverflow.com/a/18304231 +- local i_min = 0 +- while arg[ i_min ] do i_min = i_min - 1 end +- i_min = i_min + 1 +- local res = io.popen(arg[i_min]..' leak_test.lua'):read('*a') +- assert.are_same('ok\n', res) +- end) +- + describe('is_bin option', function() + it('controls if strings are serialized to BIN or STR', function() + local isbin = false -- cgit v1.2.3