Timothee Cour
49033eb531
make tests/stdlib tests joinable ( #14626 )
...
* make tests/stdlib tests joinable
* fixup
2020-06-15 13:27:33 +02:00
Timothee Cour
d51beb7b20
make fromJson/toJson work with array[range, typ], + 1 bugfix ( #14669 )
...
* make toJson more robust
* properly handle array
2020-06-15 13:22:43 +02:00
Timothee Cour
bf604c6829
normalizeExe ( #14668 )
2020-06-15 10:57:34 +02:00
jcosborn
5a22d6b57b
fix codegen bug due to changing existing symbol declaration in template ( #14666 )
2020-06-15 08:40:12 +02:00
Timothee Cour
0fc5d3f13b
fix #14655 setLen(seq) now zeros memory ( #14656 )
...
* simplify sysstr.nim
* fix #14655
2020-06-14 11:11:26 +02:00
Timothee Cour
d149823019
fix #13166 tioselectors flaky test on freebsd+OSX ( #14634 )
2020-06-12 21:19:23 -07:00
Timothee Cour
c83a22b76e
Disable tfdleak_multiple on platforms other than Windows ( #14624 )
2020-06-11 12:54:32 -07:00
Timothee Cour
8bbdb8f43f
fix #14545 windows CI docs ( #14590 )
...
* fix #14545 windows paths
* add lib/std/private/strutils2.nim
* remove dependency strutils2 => strutils
* address comment: lib/std/private/strutils2.nim => compiler/strutils2.nim
2020-06-10 14:10:57 +02:00
Timothee Cour
d81bc69587
enable tioselectors on osx; more diagnostic for #13166 ( #14625 )
2020-06-09 19:15:18 -07:00
Andreas Rumpf
6085ad95ff
fixes #14279 ( #14618 )
2020-06-09 20:39:26 +02:00
Timothee Cour
c7a1a7b8bf
toJson, jsonTo, json (de)serialization for custom types; remove 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 7cb4ef26ad .
* better approach via mixin
* toJson, jsonTo
* fix test
* address comments
* move to jsonutils
* doc
* cleanups
* also test for js
* also test for vm
2020-06-08 10:35:23 +02:00
Clyybber
52841dba09
Fix #14568 ( #14583 )
...
* Fix #14568
* Add testcase
* Fix bogus test
* Adapt other failing tests
* Declarations are always first writes
2020-06-07 23:32:41 +02:00
Andreas Rumpf
66c50c2ffc
implement the 'bind' statement for generics, it was an oversight that this was never implemented ( #14584 )
2020-06-07 09:55:56 +02:00
Leorize
3d4d3f4ac2
untestable/thttpclient_ssl: some tests are no longer broken
...
With the changes to the default cipher suites, certain tests are no
longer broken and are acting as they should.
2020-06-06 21:11:53 +02:00
Leorize
23cc4091d9
untestable/thttpclient_ssl: move incomplete-chain to dubious_broken
...
It's unsure why this test fail for macOS, but it doesn't hurt if it's
not passing.
2020-06-06 21:11:53 +02:00
Leorize
6cb94b5da6
asyncnet, net: clear openssl error queue before performing I/O
...
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
2020-06-06 21:11:53 +02:00
Leorize
44d0b4bdfd
thttpclient_ssl: be less specific
...
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.
2020-06-06 21:11:53 +02:00
Leorize
65b350f112
untestable/thttpclient_ssl: fix macos
2020-06-06 21:11:53 +02:00
Leorize
df91f61e20
untestable/thttpclient_ssl: fix 10000-sans test
2020-06-06 21:11:53 +02:00
Leorize
19ccc5fd8d
untestable/thttpclient_ssl: catch errors caused by the bad catergory
...
Previously the errors caused by `SSL_shutdown()` masked these, so now we
catch them.
2020-06-06 21:11:53 +02:00
Leorize
82092b3bb7
asyncnet, net: call SSL_shutdown only when connection established
...
This commit prevents "SSL_shutdown while in init" errors from happening.
See https://github.com/openssl/openssl/issues/710#issuecomment-253897666
2020-06-06 21:11:53 +02:00
Timothee Cour
61f2f1f5c5
fix #14576 addr of param (including for lent) now works with nim js ( #14577 )
...
* fix #14576 addr(param) now works in nim js
* workaround https://github.com/nim-lang/Nim/issues/14578
2020-06-06 20:15:24 +02:00
Timothee Cour
d573581eb7
remove isMainModule from json,os,sequtils ( #14572 )
...
* move json.isMainModule => tjson
* move isMainModule => tos,tsequtils
2020-06-06 11:50:46 +02:00
Danil Yarantsev
b19ad22b90
Fix #14570 ( #14571 )
...
* Fix #14570
2020-06-06 09:31:19 +02:00
alaviss
c1ca06b452
tfdleak: fix flakyness on Windows ( #14550 )
...
* 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 >
2020-06-04 13:25:38 +02:00
cooldome
e5b64af831
Implement rendering of []=, {}, {}= braces ( #14539 )
...
* render curly braces
* fix typo
* fix test
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-06-01 19:56:17 +02:00
Timothee Cour
3cf88c2b49
walkDirRecFilter, update doc CI filter, compiler/index.nim for docs + 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
2020-06-01 19:21:41 +02:00
Andreas Rumpf
52c3633223
warn about observerable stores but don't prevent them for 1.2.2 [backport:1.2]; refs https://github.com/nim-lang/RFCs/issues/230 ( #14510 )
2020-05-30 19:38:51 +02:00
Andreas Rumpf
7ccc7d7e93
fixes #14498 [backport:1.2] ( #14503 )
2020-05-30 15:32:31 +02:00
Andreas Rumpf
3105909f88
fixes #14495 [backport:1.2] ( #14496 )
2020-05-29 23:35:57 +02:00
Timothee Cour
63d1a0289e
fix #14421 items uses lent T ( #14447 )
...
* fix #14421 items uses lent T for seq + openArray
* add -d:nimWorkaround14447
* fix test
2020-05-29 17:10:59 +02:00
Neelesh Chandola
4c08e64e98
disallow typedesc in arrays & move existing checks to types.typeAllowedAux ( #13261 )
...
* disallow typedesc in arrays and move previous checks to types.typeAllowedAux
2020-05-29 11:48:15 +02:00
Timothee Cour
17d08ff71c
close #14284 document semantics for start for re,nre; improve examples ( #14483 )
2020-05-28 20:43:36 +02:00
Timothee Cour
38cb277653
docgen: mangling using _. instead of @@ to avoid issue ( #14454 )
2020-05-26 10:08:35 +02:00
Timothee Cour
acadda8da2
tnimblepathdollarfail.nim -> tests/nimble/tnimblepathdollar_fault to reduce false positives when searching for fail in CI logs ( #14450 )
2020-05-25 13:54:30 -07:00
Timothee Cour
58282547f6
fix #6583 , fix #14376 , index+search now generated for all projects, many bug fixes with nim doc ( #14324 )
...
* refs #6583 fix nim doc output
* changelog
* change default for outDir when unspecified
* cleanups
* --project implies --index
2020-05-25 13:25:40 +02:00
Timothee Cour
a008f591e2
add test for define, undef ( #14443 )
2020-05-25 11:17:25 +02:00
Andreas Rumpf
3eaa870c0a
ARC/ORC: optimize s.setLen(0) to match the old runtime's behaviour ( #14423 )
2020-05-21 22:38:13 +02:00
Andreas Rumpf
ddee8a362a
change the [Processing] messages into dots ( #14418 )
...
* change the [Processing] messages into dots
* better implementation
* maybe I should work on something else...
2020-05-21 22:36:34 +02:00
Clyybber
7fe4c66f35
Small improvements for string and char repr with gc:arc ( #14400 )
...
* Small improvements for string and char repr with gc:arc
* Fix test
2020-05-20 12:54:04 +02:00
Timothee Cour
3d20f14193
fix #10731 ; runnableExamples "-b:cpp --run:off": code works ( #14384 )
...
* runnableExamples "-b:cpp -r:off": code
2020-05-20 09:45:34 +02:00
alaviss
4ae341353d
asyncdispatch, asyncnet: add inheritance control ( #14362 )
...
* asyncdispatch, asyncnet: add inheritance control
* asyncnet, asyncdispatch: cleanup
2020-05-20 09:42:55 +02:00
Andreas Rumpf
16003bffe1
fixes #14126 [backport:1.2] ( #14390 )
...
* fixes #14126 [backport:1.2]
* used more logic to optimize it further; updated Nimble version
2020-05-20 00:41:57 +02:00
Timothee Cour
e909486e5c
trunner was not actually being tested in non-CTFFI mode; minor testament 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
2020-05-19 09:41:31 +02:00
cooldome
bc42e9aa98
fix #14369 ( #14386 )
...
* fix #14369
* empty commit
2020-05-18 09:38:36 +02:00
Timothee Cour
51578be296
close #12746 ; minor cleanup ( #14379 )
2020-05-17 13:28:18 +02:00
Timothee Cour
c777f2fb60
fix some issues with --backend ( #14363 )
...
* fix some issues with --backend
* fix https://github.com/timotheecour/Nim/issues/175 ; improve upon #14306
2020-05-16 13:09:18 +02:00
Kaushal Modi
bf0e1c696f
Remove the uses of {.procvar.} pragma ( #14359 )
...
This pragma did nothing.
Ref:
- https://github.com/nim-lang/Nim/issues/2172#issuecomment-383276469
- https://github.com/nim-lang/Nim/issues/12975
2020-05-15 23:37:24 +02:00
Clyybber
9f78f116b2
New "ping-pong" DFA ( #14322 )
...
* 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
2020-05-15 19:24:43 +01:00
hlaaftana
80c360fceb
fix #14350 , cstrings in JS init as null ( #14355 )
...
* fix #14350 , cstrings in JS init as null
2020-05-15 10:07:30 +02:00