diff options
author | jcosborn <jcosborn@users.noreply.github.com> | 2018-03-17 17:59:04 -0500 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-03-17 23:59:04 +0100 |
commit | e39f2a9283fc63f529d74acb0d50b0035d513e79 (patch) | |
tree | 006dd2ceee3c1f28c356e34145174d16681bd3eb /tests/system/params.nim | |
parent | d20729e840af9c504ba6ca3726bf0e4ca8f47a99 (diff) | |
download | Nim-e39f2a9283fc63f529d74acb0d50b0035d513e79.tar.gz |
fix allocator corruption for large sizes (#7338)
* fix allocator corruption for large sizes * allow large chunks to coalesce and added test case * use correct constants in MaxBigChunkSize
Diffstat (limited to 'tests/system/params.nim')
-rw-r--r-- | tests/system/params.nim | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/system/params.nim b/tests/system/params.nim deleted file mode 100644 index 1358212f2..000000000 --- a/tests/system/params.nim +++ /dev/null @@ -1,18 +0,0 @@ -import os -import osproc -import parseopt2 -import sequtils - -let argv = commandLineParams() - -if argv == @[]: - # this won't work with spaces - assert execShellCmd(getAppFilename() & " \"foo bar\" --aa:bar=a --a=c:d --ab -c --a[baz]:doo") == 0 -else: - let f = toSeq(getopt()) - echo f.repr - assert f[0].kind == cmdArgument and f[0].key == "foo bar" and f[0].val == "" - assert f[1].kind == cmdLongOption and f[1].key == "aa" and f[1].val == "bar=a" - assert f[2].kind == cmdLongOption and f[2].key == "a=c" and f[2].val == "d" - assert f[3].kind == cmdLongOption and f[3].key == "ab" and f[3].val == "" - assert f[4].kind == cmdShortOption and f[4].key == "c" and f[4].val == "" |