summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* 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