summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix #15452 - ip protocol not defined on NetBSD (#15453)Euan2020-10-011-1/+4
|
* Add first draft of new osproc.readLines (#15429)c-blake2020-10-011-0/+20
| | | | | | | | | | | | | | | | | | | | | * Add first draft of new osproc.readLines * Add test for new osproc.readLines * Rename test to start w/t to run; Also add newline to output * Suppress hint messages. * Output should match this time. * Shoulda picked a program with simpler syntax than ..lol * Address https://github.com/nim-lang/Nim/pull/15429#issuecomment-701890898 and https://github.com/nim-lang/Nim/pull/15429#issuecomment-701985976 by factoring `readLines` into `iterator lines` and a wrapper `proc`. * Address https://github.com/nim-lang/Nim/pull/15429#issuecomment-702127289 and also add a `ReadIOEffect` tag to the iterator (called by the wrapper.. so it should need no separate tag, if I understand correctly).
* fix #15405. deepcopy arc (#15410)cooldome2020-10-012-2/+33
| | | | | | | * fix #15405 * fix tests * deepcopy for ARC has to be enabled via --deepcopy:on Co-authored-by: Araq <rumpf_a@web.de>
* views: yet another bugfix (#15447)Andreas Rumpf2020-10-011-1/+1
| | | | | | | * views: yet another bugfix * views: extended the spec * views: take into account potential hidden mutations via proc calls
* refactoring, fixes yet another strictFuncs regression (#15446)Andreas Rumpf2020-10-011-0/+17
|
* added missing .noalias support for object fields (#15445)Andreas Rumpf2020-10-011-1/+6
|
* better support for view types (#15436)Andreas Rumpf2020-09-302-0/+88
| | | | | * you can put borrows into tables * enforces mutating views only mutate mutable data
* spec for view types (#15424)Andreas Rumpf2020-09-294-8/+22
| | | | | | | | | | | * spec for view types * spec additions * refactoring; there are two different kinds of views * refactorings and spec additions * enforce that view types are initialized * enforce borrowing from the first formal parameter * enforce lifetimes for borrowing of locals * typo in the manual * clarify in the implementation what a borrow operation really is
* .noalias annotation; frontend support (#15419)Andreas Rumpf2020-09-281-0/+8
| | | | | * .noalias annotation; frontend support * added .noalias support to Nim; implements https://github.com/nim-lang/RFCs/issues/204
* produce runtime type information for reified openArrays (#15415)Andreas Rumpf2020-09-271-0/+42
| | | | | * produce runtime type information for reified openArrays * added a test case
* better support for slices as views (#15414)Andreas Rumpf2020-09-273-0/+37
| | | | | | * moved view tests to tests/views * refactoring * more refactorings * better support for system.toOpenArray for first class view types
* cursor inference: makes combparser work; refactorings (#15411)Andreas Rumpf2020-09-262-2/+6
| | | | * cursor inference: makes combparser work; refactorings
* fixes #14983 (#15320)Andreas Rumpf2020-09-251-1/+14
| | | | | | | | | * fixes #14983 * allow bootstrapping with 0.20 * added a test case for the new system.add with a sink parameter * make npeg green again
* Revert "fix #15035 (#15236)" (#15408)cooldome2020-09-241-18/+1
| | | This reverts commit f8c48fc1863a243718acf86b699baed1a5c1512e.
* fixes #15361 (#15401)Andreas Rumpf2020-09-244-9/+65
| | | * fixes #15361; better cursor inference
* fix #15333 (#15336)flywind2020-09-241-0/+17
|
* Fix #15389 (#15390)cooldome2020-09-241-0/+17
| | | | | | | | | * allow result symbol reuse * try different approach * Revert "try different approach" This reverts commit abcfb6b75983c2f798cc887342ff1a9ff10c0324.
* Fix forward declarations in shadow scope contexts (#15386)Clyybber2020-09-221-0/+77
| | | | | | | | | | | | | | | * Fix forward declarations in shadow scope contexts * Add testcase for #15385 * Less empty lines * Fix tests * Inline isShadowScope * Add original testcase (with reduced amount of iterations) * Add testcase without forward decl
* better nativestacktrace support; refs #15284; backport [1.2] (#15384)Andreas Rumpf2020-09-221-0/+18
| | | | | | | | | | | | | | | | | * nimStackTraceOverride: enable stack traces in exceptions This is a two-step stack trace collection scheme, because re-raised exceptions will collect multiple stack traces but use them rarely, when printing info about an uncaught exception, so it makes sense to only do the cheap stack unwinding all the time and the relatively expensive debugging information collection on-demand. `asyncfutures` implements its own `$` proc for printing `seq[StackTraceEntry]`, so we have to add the debugging info there, just like we do for the private `$` proc in `system/excpt`. * cleaned up PR #15284 Co-authored-by: Ștefan Talpalaru <stefantalpalaru@yahoo.com>
* Add strutils.indentation and make unindent use it (#15264)Clyybber2020-09-221-0/+22
| | | | | | | | | | | | | | | | | | | | | | | * Add strutils.indentation and make unindent use it * Code style * Fix bootstrapping * Improve wording * Fix test * Introduce without breaking change * Fix * Reduce diff * Fix docs link * Add since annotation * Update changelog
* add testcase for #6060 (#15366)flywind2020-09-211-0/+11
| | | | | | | * add testcase for #6060 * Remove overspecific testament spec Co-authored-by: Clyybber <darkmine956@gmail.com>