Commit Graph

3219 Commits

Author SHA1 Message Date
Miran
e718dc75c5 Merge tests into a larger file (part 2 of ∞) (#9335)
* merge controlflow tests

* merge distinct tests

* merge enum tests

* merge fields tests

* merge implicit tests

* merge iter issues tests

(cherry picked from commit 3c9fcc4c30)
2018-11-01 17:36:14 +01:00
Jacek Sieka
7cf3944c38 Testament pre parallel (#9137)
* testament: move to root dir (it's not a test)

* osproc: fix process index passed to afterRunEvent for parallel runs

it was passing the index of the process, not index of all commands

* testament: complete file move

(cherry picked from commit 97738a4f28)
2018-11-01 17:35:08 +01:00
Miran
44f5c7e90f Merge tests into a larger file (part 1 of ∞) (#9318)
* merge actiontable tests

* merge arithm tests

* merge array tests

* merge assign tests

* merge bind tests

* merge casestmt tests

* merge closure tests

* merge cnt seq tests

* merge collections tests

* merge concept issues tests

* merge concept tests

* fix failing tests

* smaller outputs

Use `doAssert` where possible.

* fix wrong output

* split `tcomputedgoto`

* revert merging concepts

* fix failing test

(cherry picked from commit 7f18d7cbc1)
2018-11-01 17:34:33 +01:00
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
Miran
0714de4f3b Iter test: closes #3819 (#9272)
(cherry picked from commit 462bff48b2)
2018-11-01 17:29:10 +01:00
Timothee Cour
b0618ffe17 fix tests/generics/t8694.nim: runnableExamples were not run because of #9216 (#9262)
(cherry picked from commit 63c00d7be9)
2018-11-01 17:28:26 +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
0f080fdce3 Fix range type construction in the VM (#9205)
The `range[X,Y]` representation is wrong, we use `range[X .. Y]`
instead.

Fixes #9194

(cherry picked from commit 8a1055adce)
2018-11-01 17:26:50 +01:00
cooldome
221c67b880 fixes #9222 (#9224)
(cherry picked from commit 036c52f0b6)
2018-11-01 17:26:15 +01:00
LemonBoy
ddd54a3413 Prevent the construction of recursive tyStatic types (#9256)
Fixes #9255

(cherry picked from commit b8d2f79ef0)
2018-11-01 17:25:51 +01:00
Dheepak Krishnamurthy
ffeb3c6cec Add checks for except: body blocks (#9191)
(cherry picked from commit 70018aa683)
2018-11-01 17:25:30 +01:00
jcosborn
82896abcbe fixes #4435 (#9185)
(cherry picked from commit dd65986795)
2018-11-01 17:25:07 +01:00
LemonBoy
2c0bfb34fd Fix regression w/ templates defined in async proc 2018-10-03 18:25:25 +02:00
Araq
1428aeccfb closes #5868 2018-10-03 00:08:45 +02:00
Araq
c92fdb24c8 fixes #5015 2018-10-03 00:00:19 +02:00
Araq
bf85955802 fixes #7092 2018-10-02 23:45:27 +02:00
Araq
7ac1e6e528 fixes #5479 2018-10-02 23:31:39 +02:00
Araq
f673fbd91f fixes #6533 2018-10-02 19:54:02 +02:00
Araq
400a7ff1bb closes #6249 2018-10-02 19:41:47 +02:00
Andreas Rumpf
e867c8e5c3 Merge branch 'devel' into fix_issues_9126 2018-10-01 14:15:35 +02:00
Yasuhiro Horimoto
aa8249d177 Fix #9126: use splitPath instead of substr 2018-09-30 23:20:14 +09:00
LemonBoy
6d4503325c Fix regression with runnableExamples in generic expr
The examples should not enter the generic analysis at all.
The regression was introduced in 4cf704bb as a fix for #8694.

Fixes #9130
Fixes #8694
2018-09-30 14:11:53 +02:00
Sergey Avseyev
756f50d0a3 Fix ioTests category after rename
Broken in e39f2a9283
2018-09-29 23:26:06 +03:00
Andreas Rumpf
57d0ff385c Merge pull request #9121 from timotheecour/pr_fix_tasyncfilewrite
remove test_async.txt after test to keep git status clean
2018-09-29 20:17:38 +02:00
Timothee Cour
f59ddb7007 remove test_async.txt after test to keep git status clean 2018-09-29 16:57:56 +02:00
Araq
40e01d8549 don't require an implementation for procs marked with .error; activate the move optimizer for destructors 2018-09-29 16:54:59 +02:00
LemonBoy
a1083d7c43 Fix codegen for some set operations
Taking the LHS type when a temporary result value was needed lead to bad
code being generated if we get a tyRef.

Fixes #9098
2018-09-28 09:59:45 +02:00
LemonBoy
e9b5a4e25d Constant folding should not drop distinct types
Fixes #9079
2018-09-27 17:08:01 +02:00
Araq
787687727a fixes #9076 2018-09-26 11:32:02 +02:00
Araq
3d768738f8 testament: quote categories too because of 'dir with space' test 2018-09-26 11:31:17 +02:00
Andreas Rumpf
9a9005622b make t7346 work again 2018-09-24 16:00:57 +02:00
Andreas Rumpf
9364369c1f make tests green again 2018-09-24 16:00:57 +02:00
Andreas Rumpf
c38a608c90 C codegen: support system.move and system.wasMoved 2018-09-24 16:00:57 +02:00
Andreas Rumpf
3c461755e2 enable destructors for top level statements; needs to be documented 2018-09-24 16:00:57 +02:00
Andreas Rumpf
fedd695d76 Merge pull request #9046 from LemonBoy/fix-9043
Fix for VM codegen with static[T] types
2018-09-23 23:08:35 +02:00
LemonBoy
fb54f394e8 Fix for VM codegen with static[T] types
Fixes #9043
2018-09-23 18:17:00 +02:00
Andreas Rumpf
179791aa9a Merge pull request #8746 from LemonBoy/nil-opts
nil strings are movable
2018-09-23 07:51:22 +02:00
LemonBoy
7a087ffb29 nil strings are movable 2018-09-22 20:47:49 +02:00
Andreas Rumpf
a2587aad0d Merge pull request #9035 from LemonBoy/fix-3075
Skip nested procedures in .async. macro
2018-09-22 20:18:13 +02:00
LemonBoy
75a981cf80 Skip nested procedures in .async. macro
Fixes #3075
2018-09-22 17:30:17 +02:00
Andreas Rumpf
b2727d03a6 Merge pull request #9020 from LemonBoy/fix-9019
Revert #7964
2018-09-22 13:53:58 +02:00
Araq
6892ce336c enhance iterator test case, ensure consistency between inline and closure iterators regarding parameter passing semantics 2018-09-22 13:29:00 +02:00
LemonBoy
e07ab06f0a Fix locals() interaction with generic types
Follow the same logic as semTupleFieldsConstr and only skip skVar since
we're gonna add a nkDefer anyway.

Fixes #8985
2018-09-21 22:35:54 +02:00
LemonBoy
4d9aec1858 Revert #7964
Somehow the test case doesn't crash anymore and the regression in the
doc generation is fixed.

Fixes #9019
2018-09-21 18:59:46 +02:00
Andreas Rumpf
a19d2f76f6 Merge pull request #9015 from LemonBoy/fix-9013
Fix linking issue in cpp codegen
2018-09-19 22:53:52 +02:00
LemonBoy
334032294f Fix linking issue in cpp codegen
Declare the root symbol only once and have the other modules depending
on it emit an `extern` declaration.

Fixes #9013
2018-09-19 12:46:50 +02:00
LemonBoy
a27429304e Convert *_family fields to cushort
Fixes #9008
2018-09-19 12:33:11 +02:00
Andreas Rumpf
34f0b91104 attempt to make travis green for 'koch testinstall' 2018-09-18 17:25:27 +02:00
Andreas Rumpf
7ee6774fb7 travis: run 'koch testinstall' on OSX 2018-09-18 15:27:54 +02:00
Andreas Rumpf
a5d014233a Merge pull request #8996 from LemonBoy/fix-2574
The VM cannot call methods
2018-09-18 10:29:49 +02:00