summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix #15756 (#15761)cooldome2020-10-281-0/+12
| | | | | * fix #15756 * simplify test
* ARC now capable of custom extra alignment. Ref, closure and seq support. ↵cooldome2020-10-282-17/+146
| | | | (#15697)
* change/remove deprecated stuffnarimiran2020-10-281-23/+5
|
* fix #15750narimiran2020-10-281-0/+6
|
* fix #15752 (#15754)cooldome2020-10-281-0/+9
|
* honor --declaredLocs in more places, including type mismatch errors; also ↵Timothee Cour2020-10-273-4/+4
| | | | | | | show `kind` with --declaredLocs (#15673) * honor --declaredLocs in more places, including type mismatch errors * fix tests * show declaration location also when type mismatch names clash
* fixes #10456,#12928 issues when chaining templates to sortedByIt (#15734)shirleyquirk2020-10-271-0/+18
| | | | | | | | | | | | | | | * update c_malloc's to csize_t fix for broken --os:ios * I'm an idiot sorry * Create talgorithm.nim * workaround for #10456 I don't understand the intricacies of how lambdalifting and template expansions interact with lent, so i don't know how to fix the real problem, but this sidesteps whatever issue that is. * working test, use typeof rather than auto
* Add C function dup and dup2 posix to system/io (#15675)Regis Caillaud2020-10-271-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | * * Add handle to dup and dup2 posix as duplicate and duplicateTo in std/ioutils. * Added small test & changelog entry * Fixed import in tioutils removed when isMainModule * * Nest test inside block. Rename proc var -> let in captureStdout * Renamed tmpfile to iotuils.txt * Added block: # duplicate, duplicateTo * Improved docstring * Clean non-idiomatic code * Added runnable examples * rm 2 trailing space in expected output * Made syntax prettier * Runnable example: file in getTempDir() * Tmp -> Temp * Fixed runnableExamples on windows
* add tests for Testament "reject" action (#15709)n5m2020-10-272-0/+8
| | | | | | | | | | | * add test for reject action * highlight that a compilation failure is expected * add the converse test for action=reject * add trailing newline * fix wording
* [backport] fix #15595 procvar `==` works in VM (#15724)Timothee Cour2020-10-261-0/+24
|
* ensure the Nim compiler works with --experimental:strictFuncs ↵Andreas Rumpf2020-10-262-0/+15
| | | | --experimental:views [backport:1.4] (#15737)
* workaround #15725 disable freebsd tblocking_channel.nim (#15726)Timothee Cour2020-10-261-0/+2
|
* fix #15704 #15597 wrong VM register was freed (#15705)Timothee Cour2020-10-261-0/+130
| | | | | | | | | | | | | * fix #15704 #15597 wrong VM register was freed * same treatment for nkCheckedFieldExpr * note concerning HighRegisterPressure * bump NimPatch * Update lib/system.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* workaround #15713 disable freebsd tssl.nim (#15718)Timothee Cour2020-10-261-1/+3
|
* Revert "fixes #15280 [backport:1.2] (#15281)" (#15700)Clyybber2020-10-243-48/+4
| | | This reverts commit 3f00a738dbc8319b4dd2b86bf5529c096f2dd243.
* close #8007 (#15695)Timothee Cour2020-10-231-0/+51
|
* fix #15662 (#15678)cooldome2020-10-231-0/+5
| | | | | | | * fix #15662 * alternative fix * fix spacing
* Fix #12410 (#15685)Clyybber2020-10-231-0/+13
| | | | | * Fix #12410, big thanks to @pmetras for this fix * Add testcase
* fixes view types for sizeof() and --gc:orc (#15680)Andreas Rumpf2020-10-221-1/+1
|
* Add testcase for #14601 (#15677)Clyybber2020-10-221-1/+45
|
* Add testcase for #12252 (#15676)Clyybber2020-10-221-0/+7
|
* expect valgrind test failure on memory leak (#15669)n5m2020-10-221-0/+2
| | | | | * expect valgrind test failure on memory leak * alloc 1 instead of 0
* $(uint|uint64) now works with nimscript (#15644)Timothee Cour2020-10-201-0/+3
| | | | | * $(uint|uint64) now works with nimscript * fixup
* fix #15631 (#15632)n5m2020-10-193-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add tests to #15363 (#15633)Danil Yarantsev2020-10-191-0/+26
|
* add tests for #15584 (#15619)n5m2020-10-182-0/+27
| | | | | | | | | | | | | | | | | * add test for #15584 * Rename userlocks.nim to trlocks.nim * add bug comment * improve cmd * reference bugfix, not bug * add test that runs rlocks * disallow joining joining with other test cases (e.g., a test case that invokes `RLock.initRLock()`) may cause this test to compile, when the goal is to test if these lines can be compiled in isolation
* Fix #15599 (#15601)Clyybber2020-10-161-1/+13
| | | | | * Fix #15599 * Add test
* renamed '=' to '=copy' [backport:1.2] (#15585)Andreas Rumpf2020-10-1511-12/+979
| | | | | | | | | * Assign hook name changed to `=copy` * Adapt destructors.rst * [nobackport] Duplicate tests for =copy hook * Fix tests * added a changelog entry Co-authored-by: Clyybber <darkmine956@gmail.com>
* harden the ORC asyncleak3 test case (#15580)Andreas Rumpf2020-10-152-1/+416
| | | | | * harden the ORC asyncleak3 test case * add another ORC stress test
* fixes a C code generator regression, no need to backport, only the 1.4 line ↵Andreas Rumpf2020-10-141-0/+18
| | | | is affected (#15569)
* terminal: fix fgColor/bgColor commands [backport] (#15554)alaviss2020-10-131-0/+8
| | | | | Since #8296, fgSetColor is no longer a global. These commands were probably left out from the change as an oversight, so some tests have been added to make sure this won't happen again.
* Fix 15543 (#15544)cooldome2020-10-121-1/+21
| | | | | | | | | * fix #15543 * fix spacing * fix test * simplify test for freebsd platform
* os: add overload copyFile*(source, dest: string, isDir = false) (#15537)Timothee Cour2020-10-111-0/+19
| | | | | * os: add overload copyFile*(source, dest: string, isDir = false) * renamed to copyFileToDir
* followup after #15529 and #15534 (#15536)Timothee Cour2020-10-101-8/+3
|
* fixes #15532 (#15534)Andreas Rumpf2020-10-091-0/+21
|
* close #13081 (#15529)Timothee Cour2020-10-091-0/+31
| | | | | * close #13081 * fixup
* fix #15516 (#15518)cooldome2020-10-081-1/+17
|
* docgen: improve alignment of comments (still not perfect) (#15506)Andreas Rumpf2020-10-071-2/+2
| | | | | | | * docgen: improve alignment of comments (still not perfect) * fix error message text in `tunknown_named_parameter` Co-authored-by: narimiran <narimiran@disroot.org>
* fixes #15508 (#15509)Andreas Rumpf2020-10-071-0/+21
|
* implements https://github.com/nim-lang/RFCs/issues/260 (#15505)Andreas Rumpf2020-10-072-0/+13
| | | | | * implements https://github.com/nim-lang/RFCs/issues/260 * added a test case
* effects: exclude swap() from "indirect calls" assumption (#15504)Paul Tan2020-10-061-0/+12
| | | | | swap() will never call any procs passed to it, and so it can be safely excluded from the "assume indirect calls are taken" effects tracking rule.
* New hint for unused exceptions in .raises (#15492)IDF2020-10-061-1/+6
| | | | | | | * New hint for unused exceptions in .raises * Fix effects test * Further adapt teffects1.nim
* implements https://github.com/nim-lang/RFCs/issues/258 (#15503)Andreas Rumpf2020-10-062-2/+27
| | | | | | | | | * implements https://github.com/nim-lang/RFCs/issues/258 * don't be too strict with custom pragma blocks * cast pragmas: documentation * added most missing inference query procs to effecttraits.nim
* const view types; fixes some cases from ↵Andreas Rumpf2020-10-051-0/+26
| | | | https://github.com/nim-lang/Nim/issues/15428 (#15488)
* use func in uri module (#15486)flywind2020-10-051-1/+1
|
* Fix #15493 - disable TLS emulation for NetBSD (#15494)Euan2020-10-051-2/+2
| | | TLS emulation was already disabled for FreeBSD due to the same issue.
* renderer: use the biggest integer type for masking literals (#15482)alaviss2020-10-041-0/+2
| | | | | | | | On 32-bit system the mask would have a size of 32-bit, which is smaller than the BiggestInt (usually 64-bit) it was masked against. For some reason this only affect 32-bit Windows but not 32-bit Linux. Might just be a difference in how gcc handle out of bound shifts for Windows and Linux.
* Added std/effecttraits.nim (#15462)Andreas Rumpf2020-10-021-0/+22
|
* closureiters: fixes #15243 (#15454) [backport:1.2]Andreas Rumpf2020-10-022-66/+25
| | | | * fixes #15243 [backport:1.2]
* Ref #14094 - disable hot code reloading tests on NetBSD (#15458)Euan2020-10-022-0/+2
|