summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix #13899 defer now works with async (#14723)Timothee Cour2020-06-191-7/+18
|
* Add testcases for #11811 and #14315 (#14726)Clyybber2020-06-192-1/+22
| | | | | * Add testcase for #11811 * Add testcase for #14315
* fix #14685 tests/async/t7758.nim flaky (#14721)Timothee Cour2020-06-191-2/+7
| | | | | | | * fix #14685 tests/async/t7758.nim flaky * address comment * address comment
* add legacy workaround; improve test so that it actually tests for the bugfixTimothee Cour2020-06-191-31/+7
|
* Update tuple newLitsolo9892020-06-191-0/+32
|
* [cleanups] doassert => doAssert; mark deadcode (#14711)Timothee Cour2020-06-173-14/+14
|
* Remove deprecated stuff from stdlib (#14699)Miran2020-06-1720-78/+139
| | | | | | | * update to the latest Jester * remove deprecated procs from some stdlib modules * 'criterion' is not maintained anymore and relies on obsolete stuff
* use check to investigate #14685 flaky tests/async/t7758.nim (#14689)Timothee Cour2020-06-161-2/+3
|
* cleanup tests/test_nimscript.nims (#14686)Timothee Cour2020-06-161-9/+1
|
* Close#5586 (#14682)Dylan Modesitt2020-06-162-3/+0
| | | | | * re-enable macos and bsd on some coro tests * re-enable macos and bsd on some coro tests
* Set cincludes and clibdir for FreeBSD, OpenBSD and NetBSD. (#14680)Euan2020-06-161-3/+0
|
* `addQuitProc` now works with closures, and c, js(node/browser) backend; fix ↵Timothee Cour2020-06-162-1/+22
| | | | | | | | | | | | | | | some bugs in testament (#14342) * make addQuitProc great again * fix bugs in testament * fix test * change 2016 => 2020 * addQuitProc => addExitProc + locks * move to std/exitprocs
* fix #14179, fix #14142, make CI 1.4x faster (2x faster locally) (#14658)Timothee Cour2020-06-161-0/+7
| | | | | | | | | | | | | | | * fix #14142: no more clash with: import os + use of existsDir/dirExists/existsFile/fileExists/findExe in config.nims * remove a comment * Revert "fixes the regression #12860 caused; hotfix" This reverts commit 3d2459bdc0b6d6236a2cd9209ed81c965ee411a5. * Revert "Undefine `paramCount` & `paramStr` in nimscript.nim for *.nims (#12860)" This reverts commit d38853c504d89d6e361f064a17391afaf42d74b8. * noNimScript => noWeirdTarget + noNimJs
* make tests/stdlib tests joinable (#14626)Timothee Cour2020-06-158-7/+44
| | | | | * make tests/stdlib tests joinable * fixup
* make `fromJson/toJson` work with `array[range, typ]`, + 1 bugfix (#14669)Timothee Cour2020-06-151-0/+26
| | | | | * make toJson more robust * properly handle array
* normalizeExe (#14668)Timothee Cour2020-06-151-0/+10
|
* fix codegen bug due to changing existing symbol declaration in template (#14666)jcosborn2020-06-151-0/+106
|
* fix #14655 setLen(seq) now zeros memory (#14656)Timothee Cour2020-06-141-1/+8
| | | | | * simplify sysstr.nim * fix #14655
* fix #13166 tioselectors flaky test on freebsd+OSX (#14634)Timothee Cour2020-06-122-4/+53
|
* Disable tfdleak_multiple on platforms other than Windows (#14624)Timothee Cour2020-06-111-1/+4
|
* fix #14545 windows CI docs (#14590)Timothee Cour2020-06-101-0/+32
| | | | | | * fix #14545 windows paths * add lib/std/private/strutils2.nim * remove dependency strutils2 => strutils * address comment: lib/std/private/strutils2.nim => compiler/strutils2.nim
* enable tioselectors on osx; more diagnostic for #13166 (#14625)Timothee Cour2020-06-091-5/+3
|
* fixes #14279 (#14618)Andreas Rumpf2020-06-091-0/+15
|
* `toJson`, `jsonTo`, json (de)serialization for custom types; remove ↵Timothee Cour2020-06-081-0/+44
| | | | | | | | | | | | | | | | | | | | | dependency on strtabs thanks to a hooking mechanism (#14563) * json custom serialization; application for strtabs * serialize using nesting * make toJson more feature complete * add since * Revert "Improve JSON serialisation of strtabs (#14549)" This reverts commit 7cb4ef26addb3bb5ce2405d8396df6fd41664dae. * better approach via mixin * toJson, jsonTo * fix test * address comments * move to jsonutils * doc * cleanups * also test for js * also test for vm
* Fix #14568 (#14583)Clyybber2020-06-072-2/+26
| | | | | | | * Fix #14568 * Add testcase * Fix bogus test * Adapt other failing tests * Declarations are always first writes
* implement the 'bind' statement for generics, it was an oversight that this ↵Andreas Rumpf2020-06-071-0/+17
| | | | was never implemented (#14584)
* untestable/thttpclient_ssl: some tests are no longer brokenLeorize2020-06-061-6/+6
| | | | | With the changes to the default cipher suites, certain tests are no longer broken and are acting as they should.
* untestable/thttpclient_ssl: move incomplete-chain to dubious_brokenLeorize2020-06-061-1/+1
| | | | | It's unsure why this test fail for macOS, but it doesn't hurt if it's not passing.
* asyncnet, net: clear openssl error queue before performing I/OLeorize2020-06-061-0/+1
| | | | | | | | | | | | Per SSL_get_error(3): The current thread's error queue must be empty before the TLS/SSL I/O operation is attempted, or SSL_get_error() will not work reliably. There has been records of not clearing the error queue causing weird SSL errors when there shouldn't be any, see: https://github.com/openssl/openssl/issues/11889
* 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
|