diff options
author | n5m <72841454+n5m@users.noreply.github.com> | 2020-10-19 20:25:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-19 22:25:43 +0200 |
commit | 436e1fa5b13d0a5b667a800b1716e5139f1c20fe (patch) | |
tree | 93be0c4875d5aa239788ebfa2f15e5c3ddfb42c4 /tests/valgrind/tleak_arc.nim | |
parent | 833035bacd91c2cf16ea006b64bf996e87eac75d (diff) | |
download | Nim-436e1fa5b13d0a5b667a800b1716e5139f1c20fe.tar.gz |
fix #15631 (#15632)
* trigger valgrind failure on memory leak * remove non-malloc tests * remove ORC test is redundant because we already have an ARC test * only run valgrind tests on 64-bit Linux * disable freebsd and openbsd * Remove tleak_refc As to not test implementation details (or bug) * Fix test failures by removing redundant test Since this tests/shoulfail/tvalgrind.nim was specified here to fail this test itself fails since it will be skipped on non-linux CI * Remove test, reason detailed in the previous commit * Remove redundant disables * Revert removing disables * Add and use valgrind: leaks * Fix Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: n5m
Diffstat (limited to 'tests/valgrind/tleak_arc.nim')
-rw-r--r-- | tests/valgrind/tleak_arc.nim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/valgrind/tleak_arc.nim b/tests/valgrind/tleak_arc.nim new file mode 100644 index 000000000..8dea7c62a --- /dev/null +++ b/tests/valgrind/tleak_arc.nim @@ -0,0 +1,14 @@ +discard """ +valgrind: true +cmd: "nim $target --gc:arc -d:useMalloc $options $file" +exitcode: 1 +outputsub: " definitely lost: 7 bytes in 2 blocks" +disabled: "freebsd" +disabled: "macosx" +disabled: "openbsd" +disabled: "windows" +disabled: "32bit" +""" + +discard alloc(3) +discard alloc(4) |