summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* thttpclient_ssl: be less specificLeorize2020-06-061-2/+1
| | | | | | The error we're looking for is "certificate verify failed". The routine that reports this will be different between openssl versions, so it makes no sense to track the routine name as well.
* untestable/thttpclient_ssl: fix macosLeorize2020-06-061-0/+1
|
* untestable/thttpclient_ssl: fix 10000-sans testLeorize2020-06-061-1/+3
|
* untestable/thttpclient_ssl: catch errors caused by the bad catergoryLeorize2020-06-061-1/+1
| | | | | Previously the errors caused by `SSL_shutdown()` masked these, so now we catch them.
* asyncnet, net: call SSL_shutdown only when connection establishedLeorize2020-06-061-2/+3
| | | | | | This commit prevents "SSL_shutdown while in init" errors from happening. See https://github.com/openssl/openssl/issues/710#issuecomment-253897666
* fix #14576 addr of param (including for lent) now works with nim js (#14577)Timothee Cour2020-06-061-1/+61
| | | | | * fix #14576 addr(param) now works in nim js * workaround https://github.com/nim-lang/Nim/issues/14578
* remove isMainModule from json,os,sequtils (#14572)Timothee Cour2020-06-063-0/+757
| | | | | * move json.isMainModule => tjson * move isMainModule => tos,tsequtils
* Fix #14570 (#14571)Danil Yarantsev2020-06-061-0/+11
| | | | * Fix #14570
* tfdleak: fix flakyness on Windows (#14550)alaviss2020-06-042-4/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tfdleak_multiple: introduce stress tester for tfdleak Imported from #14548 and tweaked for consumption by testament. This test seems to be really good at bringing out the flakyness of tfdleadk. Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * tfdleak: increase accuracy of the test on Windows This commit implements a new testing strategy for Windows: 1. We duplicate the handle that will be tested and enable inheritance. This duplicate will serve as a reference handle. 2. In addition to checking whether the handle is valid, we also verify whether the handle is the same as the reference. This gives us complete certainty on whether the handle in question is inherited from the parent. A side effect is that this uses Windows 10+ APIs. But since this is just for the test, we don't have to be picky about it. Ideally we would want to do something like this for other POSIX-based system, but most of them lack a facility to do this, and as of writing there isn't any false positive for them, so we won't need the additional checks. MemFile.fHandle will also no longer be tested, as this handle defaults to being invalid. Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Implement rendering of `[]=`, `{}`, `{}=` braces (#14539)cooldome2020-06-012-4/+17
| | | | | | | * render curly braces * fix typo * fix test Co-authored-by: cooldome <ariabushenko@bk.ru>
* walkDirRecFilter, update doc CI filter, compiler/index.nim for docs + ↵Timothee Cour2020-06-011-5/+2
| | | | | | | | | | | various other fixes (#14501) * update doc CI filter to include the files mostly likely to require doc rebuild * remove code duplication in ./config/nimdoc.cfg; show link to compiler docs, various fixes * walkDirRecFilter, factor nativeToUnixPath workaround * glob for getRst2html * docslocal: 40s to build all docs * revert code dedup in github actions which did not work alas... * fixups
* warn about observerable stores but don't prevent them for 1.2.2 ↵Andreas Rumpf2020-05-301-4/+6
| | | | [backport:1.2]; refs https://github.com/nim-lang/RFCs/issues/230 (#14510)
* fixes #14498 [backport:1.2] (#14503)Andreas Rumpf2020-05-302-2/+16
|
* fixes #14495 [backport:1.2] (#14496)Andreas Rumpf2020-05-291-5/+43
|
* fix #14421 items uses lent T (#14447)Timothee Cour2020-05-297-7/+7
| | | | | * fix #14421 items uses lent T for seq + openArray * add -d:nimWorkaround14447 * fix test
* disallow typedesc in arrays & move existing checks to `types.typeAllowedAux` ↵Neelesh Chandola2020-05-299-10/+21
| | | | | | (#13261) * disallow typedesc in arrays and move previous checks to types.typeAllowedAux
* close #14284 document semantics for start for re,nre; improve examples (#14483)Timothee Cour2020-05-281-0/+108
|
* docgen: mangling using _. instead of @@ to avoid issue (#14454)Timothee Cour2020-05-261-19/+19
|
* tnimblepathdollarfail.nim -> tests/nimble/tnimblepathdollar_fault to reduce ↵Timothee Cour2020-05-252-0/+3
| | | | false positives when searching for `fail` in CI logs (#14450)
* fix #6583, fix #14376, index+search now generated for all projects, many bug ↵Timothee Cour2020-05-256-15/+101
| | | | | | | | | fixes with nim doc (#14324) * refs #6583 fix nim doc output * changelog * change default for outDir when unspecified * cleanups * --project implies --index
* add test for `define`, `undef` (#14443)Timothee Cour2020-05-251-0/+12
|
* ARC/ORC: optimize s.setLen(0) to match the old runtime's behaviour (#14423)Andreas Rumpf2020-05-211-1/+1
|
* change the [Processing] messages into dots (#14418)Andreas Rumpf2020-05-211-2/+1
| | | | | | | * change the [Processing] messages into dots * better implementation * maybe I should work on something else...
* Small improvements for string and char repr with gc:arc (#14400)Clyybber2020-05-202-3/+3
| | | | | * Small improvements for string and char repr with gc:arc * Fix test
* fix #10731 ; `runnableExamples "-b:cpp --run:off": code` works (#14384)Timothee Cour2020-05-201-1/+34
| | | | * runnableExamples "-b:cpp -r:off": code
* asyncdispatch, asyncnet: add inheritance control (#14362)alaviss2020-05-201-5/+31
| | | | | * asyncdispatch, asyncnet: add inheritance control * asyncnet, asyncdispatch: cleanup
* fixes #14126 [backport:1.2] (#14390)Andreas Rumpf2020-05-201-3/+45
| | | | | * fixes #14126 [backport:1.2] * used more logic to optimize it further; updated Nimble version
* trunner was not actually being tested in non-CTFFI mode; minor testament ↵Timothee Cour2020-05-199-27/+26
| | | | | | | | | | cleanups (#14377) * use check * trunner now works with cpp * cleanup: move compiler/unittest_light => stdtest/unittest_light * fix tests/readme.md * remove deadcode references to rodfiles * fix for windows
* fix #14369 (#14386)cooldome2020-05-181-0/+10
| | | | | * fix #14369 * empty commit
* close #12746; minor cleanup (#14379)Timothee Cour2020-05-172-2/+22
|
* fix some issues with --backend (#14363)Timothee Cour2020-05-163-0/+43
| | | | | * fix some issues with --backend * fix https://github.com/timotheecour/Nim/issues/175; improve upon #14306
* Remove the uses of {.procvar.} pragma (#14359)Kaushal Modi2020-05-153-6/+6
| | | | | | | This pragma did nothing. Ref: - https://github.com/nim-lang/Nim/issues/2172#issuecomment-383276469 - https://github.com/nim-lang/Nim/issues/12975
* New "ping-pong" DFA (#14322)Clyybber2020-05-151-0/+103
| | | | | | | | | | | | | | | | | * New ping-pong analysis * Add testcase for #13456 * Remove debugging leftover * Unquote "unstructured controlflow" * Fix typo * Fix exponential complexity in edge cases * Add sanity testcase * Fix
* fix #14350, cstrings in JS init as null (#14355)hlaaftana2020-05-153-3/+10
| | | | * fix #14350, cstrings in JS init as null
* fix #14333 (#14336)cooldome2020-05-131-1/+17
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* `osproc.execCmdEx` now takes an optional `input` for stdin, `env`, ↵Timothee Cour2020-05-131-1/+14
| | | | | | | workingDir (#14211) * `osproc.execCmdEx` now takes an optional `input` for stdin * execCmdEx now also takes an optional ``workingDir` and `env`
* fix #14320 (tasyncawait.nim is recently very flaky) + avoid hardcoding ↵Timothee Cour2020-05-137-92/+61
| | | | | | | service ports everywhere + flakyAssert (#14327) * hotfix #14320 tasyncawait.nim is recently very flaky * fix #14327 * add flakyAssert
* Allow let to not have value when using importc (#14258)PMunch2020-05-122-0/+32
| | | | | | | | | | | | | | * Allow let to not have value when using importc This allows a let statement with the `{.importc.}` pragma to not be initialised with a value. This allows us to declare C constants as Nim lets without putting the value in the Nim code (which can lead to errors, and requires us to go looking for the value). Fixes #14253 * Proper fix and documentation + changelog entry * Improve testcase with one from timotheecour * Add test to verify it working with macros
* close #13071 by adding test: nim cpp -r --gc:arc` segfaults on caught ↵Timothee Cour2020-05-121-0/+16
| | | | AssertionError (#14323)
* fix #14314 do not analyze importc procs for effects (#14319)Timothee Cour2020-05-122-4/+36
|
* fix #14312cooldome2020-05-121-2/+13
|
* fix #14219 (#14225)cooldome2020-05-112-0/+16
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* fix #14294 (#14301)cooldome2020-05-111-1/+25
| | | | | | | * fix #14294 * fix orc as well Co-authored-by: cooldome <ariabushenko@bk.ru>
* do not track 'raise Defect' in the .raises: [] clause anymore (#14298)Andreas Rumpf2020-05-111-2/+2
| | | | | | | | | * do not track 'raise Defect' in the .raises: [] clause anymore * --panics:on maps 'raise Defect' to an unrecoverable fatal error * make tests green again * update the documentation too
* `nim doc --backend:js`, `nim doc --doccmd:-d:foo`, `nim r --backend:js`, ↵Timothee Cour2020-05-114-9/+67
| | | | | | | | | | `--doccmd:skip` + other improvements (#14278) * `nim doc --backend:js|cpp...` `nim doc --doccmd:'-d:foo --threads:on'` `nim r --backend:cpp...` (implies --run --usenimcache) * --usenimcache works with all targets * --docCmd:skip now skips compiling snippets; 50X speedup for doc/manual.rst
* fix a critical bug in windows.osproc leading to resource leaks and blocking ↵Timothee Cour2020-05-111-0/+26
| | | | IO [backport] (#14296)
* Fix #14269 (#14286)Clyybber2020-05-091-1/+103
|
* --hint:processing (+friends) is now supported and means ↵Timothee Cour2020-05-082-2/+21
| | | | `--hint:processing:on`, like all other bool flags (#14271)
* Fix #14270 and add testcases (#14276)Clyybber2020-05-081-0/+30
|
* make `from` an operator (#14241)hlaaftana2020-05-081-0/+12
|