xzfc
73a7d1456c
Fix tests on NixOS ( #9209 ) ( #9285 )
...
* Replace `/bin/sleep` with just `sleep`, i.e. use environment variable
`$PATH` to locate binary.
* Replace `/usr/share/zoneinfo` with `$TZDIR` when it is defined,
fallback to hardcoded path otherwise. This is the same behavior that
Glibc2 normally have, see man 3 tzset.
(cherry picked from commit 8ed3dac1dc )
2018-11-01 17:31:25 +01:00
Dominik Picheta
7ff17aff5f
Fixes #8994 . FutureStream read procedure data loss no longer occurs. ( #9183 )
...
* Fixes #8994 . FutureStream read procedure data loss no longer occurs.
* Optimises the fix for #8994 .
(cherry picked from commit 21ecf64d24 )
2018-11-01 17:27:35 +01:00
LemonBoy
2c0bfb34fd
Fix regression w/ templates defined in async proc
2018-10-03 18:25:25 +02:00
Timothee Cour
f59ddb7007
remove test_async.txt after test to keep git status clean
2018-09-29 16:57:56 +02:00
LemonBoy
75a981cf80
Skip nested procedures in .async. macro
...
Fixes #3075
2018-09-22 17:30:17 +02:00
LemonBoy
a27429304e
Convert *_family fields to cushort
...
Fixes #9008
2018-09-19 12:33:11 +02:00
Araq
4c34787107
make async test more reliable
2018-09-15 12:21:01 +02:00
Dominik Picheta
81f920a4ee
Process timers before and after select. Fixes flaky #7758 test. ( #8750 )
2018-08-25 09:44:02 +02:00
Andreas Rumpf
effe2fd812
disables flaky test; fixes #8756
2018-08-24 09:58:03 +02:00
Dominik Picheta
07e1da8342
Adds test case for #6846 . ( #8729 )
2018-08-23 20:35:22 +02:00
Dominik Picheta
1b1633991a
Don't skip poll() when no handles are present. ( #8727 )
...
Fixes #7886 .
Fixes #7758 .
Fixes #6929 .
Fixes #3909 .
Replaces #8209 .
2018-08-23 20:35:22 +02:00
Araq
27f488e5d9
make more tests green; system.repr does not produce 'nil' for strings and seqs anymore
2018-08-22 15:37:57 +02:00
Andreas Rumpf
dae5450947
WIP: disallow 'nil' for strings and seqs
2018-08-13 11:41:33 +02:00
Andreas Rumpf
bbc404d80d
disable tioselectors test for OSX
2018-08-06 19:44:15 +02:00
Yuriy Glukhov
2094209837
Fixed #8399 ( #8401 )
2018-07-22 22:30:59 +02:00
Andreas Rumpf
0926754e68
make tests green again
2018-07-05 15:51:04 +02:00
Yuriy Glukhov
5c449c8cd1
Removed oldIterTranf feature
2018-06-10 23:42:53 +03:00
Yuriy Glukhov
60b9c9dc1f
Fixes #7985
2018-06-07 19:14:14 +03:00
Yuriy Glukhov
511d7079a1
Fixed tests
2018-06-06 20:04:37 +03:00
Yuriy Glukhov
5d166fcc0a
Review comments addressed. More thorough line info tracking.
2018-05-10 00:27:50 +03:00
Yuriy Glukhov
ce63490928
Yield in try
2018-05-09 22:25:28 +03:00
Yuriy Glukhov
7d38db284b
Extended tasync_in_seq_constr test
2018-05-09 22:25:27 +03:00
Yuriy Glukhov
d71f69ab50
Closure iter transformation
2018-05-09 22:25:27 +03:00
Andreas Rumpf
d8fde9daba
make tests green
2018-05-05 21:45:07 +02:00
Andreas Rumpf
0fad659bf7
make more tests green
2018-04-30 02:52:58 +02:00
Zahary Karadjov
10142e4a80
Fix some usages of typedesc in async procs
...
This also fixes a compilation error in modules, based only on the
new async module (i.e. not importing the full asyncdispatch)
2018-04-13 13:31:55 +03:00
andri lim
19164929ed
fixes #7347 , asyncfile.getFileSize ( #7354 )
...
* fixes #7347
* fixes #7347
2018-03-17 15:21:22 +00:00
Ruslan Mustakov
319e88585a
Fix AsyncFile open flags. Fixes #5531
2018-02-17 17:40:35 +07:00
Dominik Picheta
b754bfabb6
Merge pull request #7023 from yglukhov/unify-async
...
Unify async macro and futures for js and native targets
2018-01-17 15:06:32 +00:00
Dominik Picheta
72d9485e8e
Fix tasync_traceback test.
2018-01-11 16:52:14 +00:00
Dominik Picheta
b7713859ab
Use regex to match output of tasync_traceback.
2018-01-11 16:15:53 +00:00
Dominik Picheta
2c905f5e81
Merge pull request #6962 from nim-lang/fixes/6100
...
Fixes #6100 .
2018-01-10 23:11:26 +00:00
Yuriy Glukhov
c93655e8b4
Unify async macro and futures for js and native targets
2018-01-05 16:40:51 +02:00
Dominik Picheta
7e6dc3679a
Simplify async traceback processing.
2017-12-28 09:21:22 +01:00
Dominik Picheta
383c80971c
No need to recurse now that mergeEntries doesn't do any pattern matching.
2017-12-28 09:21:22 +01:00
Dominik Picheta
6301e33543
Show only detailed async tracebacks.
2017-12-28 09:21:22 +01:00
Dominik Picheta
3a790c9c72
Rename cb0 to asyncProcName_continue + other improvements to async tracebacks.
2017-12-28 09:21:22 +01:00
Dominik Picheta
a9a13e470b
Go through the re-raise stacks for more detailed tracebacks.
2017-12-28 09:21:22 +01:00
Dominik Picheta
9ca6afe73a
Refine the async tracebacks.
2017-12-28 09:21:22 +01:00
Dominik Picheta
f73015ad9e
Implement some simple pattern-based transformation for async tracebacks.
2017-12-28 09:21:22 +01:00
Dominik Picheta
52cc925e0e
Fixes #6100 .
2017-12-27 22:37:11 +00:00
Andreas Rumpf
85ac3130aa
make asyncdispatch.poll completing all opterations that can be comple… ( #6911 )
...
introduce asyncdispatch.drain that completes all operations that can be completed immediately; implements #6523
2017-12-19 12:39:50 +01:00
Araq
e0591d4941
fixes #6626
2017-12-15 15:33:43 +01:00
Mathias Stearn
b87ef65532
Use addCallback rather than callback= in asyncfutures.all() ( #6850 )
...
* Use addCallback rather than callback= in asyncfutures.all()
Addresses part of #6849
* Stop using do notation for #6849
* Update example style
2017-12-09 00:55:04 +00:00
Dominik Picheta
4d931c6276
Add an attempted reproduction for #5531 .
2017-11-26 22:52:39 +00:00
Dominik Picheta
d3394be555
Async upcoming ( #6585 )
...
* Merge upcoming async with current.
* Various improvements to selectors (mostly docs).
Two changes to highlight:
* Renamed ``setEvent`` to ``trigger``
* Reused setBlocking from nativesockets.
* Various changes/fixes to asyncdispatch after upcoming merge.
* Make some attempts to be compatible with older selectors.
* Reuse epoll module in ioselectors_epoll.
2017-11-22 15:43:10 +01:00
Andreas Rumpf
1548743856
make tests green again
2017-11-18 23:03:16 +01:00
Sergey Avseyev
b7ea1b0819
Tests should not rely on external services ( #6703 )
...
This test depends on example.com site to be reachable, and fails when
there is no internet connection.
2017-11-15 17:25:00 +01:00
Sergey Avseyev
bdd35c9722
Fix endianness in the test ( #6715 )
2017-11-11 16:52:12 -05:00
Andreas Rumpf
4ea09e4df5
attempt to make travis green again
2017-11-05 21:44:22 +01:00