diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-12 22:52:36 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-12 22:53:46 +0100 |
commit | 3279667810debcc7c1db78407e60ae0b1cc7ed03 (patch) | |
tree | 3d65f49af3ab0b16dd621abffb2e4933a26956a3 /community/lua-mpack/skip-memleak-test.patch | |
parent | 5515de0c97828b3a1a4a9c227fca8228ea5b08af (diff) | |
download | aports-3279667810debcc7c1db78407e60ae0b1cc7ed03.tar.bz2 aports-3279667810debcc7c1db78407e60ae0b1cc7ed03.tar.xz |
community/lua-mpack: add check function
Diffstat (limited to 'community/lua-mpack/skip-memleak-test.patch')
-rw-r--r-- | community/lua-mpack/skip-memleak-test.patch | 20 |
1 files changed, 20 insertions, 0 deletions
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 |