Commit Graph

1439 Commits

Author SHA1 Message Date
yglukhov
e9a57e9706 Fixed codegen for DotDot magic 2015-06-04 12:00:27 +03:00
Araq
8d508162e8 added missing test 2015-05-28 12:51:18 +02:00
yglukhov
b4843bc7c1 Enabled taddr and testobjs tests 2015-05-27 11:36:45 +03:00
Flaviu Tamas
3daef85d6e Fix #964, fix #1384
Doesn't actually fix those bugs, but they can no longer be reproduced. Test
cases have been added.
2015-05-26 18:41:28 -04:00
Flaviu Tamas
c9616897f0 Don't inspect typedescs 2015-05-26 18:40:43 -04:00
yglukhov
d3c4c7c52f Fixes #2798 2015-05-26 16:00:48 +03:00
Sergey Avseyev
411e602d13 Introduce pedantic mode for tester
Motivation
----------
External tools need to know whether or not any test in suite failed. For
example buildbot, or packaging tool would like to stop the execution and
mark it as failed if some tests does not pass.

Modification
------------
Add `--pedantic` switch to tester program which will force it to quit
with non-zero exit code if at least one failure detected. Also update
`tests()` proc in koch to inspect result from tester and propagate it to
user.

Result
------
Nothing has changed in default behaviour. But following invocations will
exit with non-zero code if there failed tests:

    ./koch tests --pedantic all
    ./tests/testament/tester --pedantic all
2015-05-25 22:37:30 +03:00
Adam Strzelecki
1d47617d1b Macros: Introduce getType(t: typedesc): NimNode
Since typedesc are exception in macros and they are not implicitly converted to
NimNode on macro call, we need some means to perform such conversion on demand.

Fortunately it is as simple as declaring new magic "NGetType" proc with
typedesc parameter.

NOTE: Keeping actual macro exceptional behavior for typedesc is important,
since it allows passing typedesc macro parameter to other procs or macros
expecting type parameter. If typedesc parameter was implicitly converted, then
we would lost this ability.
2015-05-17 15:28:41 +02:00
Andreas Rumpf
9abbe3ba69 Merge pull request #2564 from reactormonk/jpoirier-realtimeGCTest
Jpoirier realtime gc test
2015-05-14 02:06:11 +02:00
Simon Hafner
2bc1db7a30 run the C test too 2015-05-13 13:13:30 -05:00
Adam Strzelecki
a8fbaf917b Tests for static class proc, methods & iterators
This currently covers #2662 & #2710 bugs.
2015-05-13 19:10:54 +02:00
Simon Hafner
9c4a74637d Merge branch 'devel' into jpoirier-realtimeGCTest 2015-05-13 12:06:05 -05:00
Andreas Rumpf
31d472d83d Merge pull request #2660 from MrJohz/contains-tables
Add contains proc for tables to allow usage of `in`
2015-05-08 02:19:45 +02:00
Andreas Rumpf
9422dbf337 Merge pull request #2657 from def-/noreturn
Pass noReturn pragma to C code.
2015-05-08 02:08:32 +02:00
Varriount
d3f69e14f7 Merge pull request #2596 from Nycto/devel
Fix floats in tuples in HashSets
2015-05-07 13:02:42 -04:00
Jonathan
8e4af5ace0 Add contains proc for tables to allow usage of in 2015-05-05 23:26:58 +01:00
def
c5db4fc3a2 Move the noreturn pragma to sysFatal
Now you can choose to implement sysFatal with --os:standalone so that it
returns.
2015-05-05 20:26:54 +02:00
Araq
0e1167d64b made test green 2015-05-03 01:08:53 +02:00
Araq
e23857a98b fixes #2629, fixes #2641, fixes #2632, fixes #2630 2015-05-03 01:08:52 +02:00
Araq
7d3a6b42d9 fixes #2625 2015-05-03 01:08:48 +02:00
Araq
6d05ae26e6 fixes regression caused by code cleanups 2015-04-29 22:24:50 +02:00
Araq
26eae7d00e fixes #2470, fixes #1354 2015-04-28 20:21:53 +02:00
Araq
c6398d408d fixes #1888 2015-04-27 23:11:59 +02:00
Araq
e40b667891 fixes regression: overloading by 'var' 2015-04-25 23:17:00 +02:00
Araq
d3fc6e1f28 marshalling can be done at compile-time 2015-04-25 23:17:00 +02:00
Araq
6725aa3634 fixes #2517 2015-04-25 23:16:59 +02:00
Araq
2c91e999e2 fixes #2600 2015-04-25 23:16:58 +02:00
Araq
ecc0090939 fixes #2551; fixes #2212; breaks bootstrapping in debug mode; bootstrap with -d:release 2015-04-25 23:16:57 +02:00
Araq
4d20aafb5e fixes #2372 2015-04-25 23:16:57 +02:00
Nycto
4f88238761 Fix floats in tuples in HashSets
Previously, the added tests would fail to compile with
errors complaining that 'hash(float)' didn't exist
2015-04-24 08:25:58 -07:00
Araq
6ca38472a1 cleanups for underscores in tuple unpacking 2015-04-24 13:08:42 +02:00
Araq
c01d9d081b added test for #2536 2015-04-24 12:35:13 +02:00
Andreas Rumpf
6a016743aa Merge pull request #2566 from nanoant/parser-diagnostic-location
Parser: Fix location (line, col) for diagnostics
2015-04-24 12:33:11 +02:00
Dominik Picheta
f0f0062a5d Add sfGenSym for (_). 2015-04-23 00:29:16 +01:00
Dominik Picheta
9e69e4e078 Merge branch 'devel' into underscore-tuple-unpack
Conflicts:
	compiler/semstmts.nim
2015-04-23 00:26:17 +01:00
Araq
bcd8053b23 fixes #2585 2015-04-22 20:25:11 +02:00
Araq
54515241e3 fixes #2581 2015-04-22 12:04:10 +02:00
Araq
c69d74818e fixes #2550 2015-04-22 12:04:09 +02:00
Adam Strzelecki
dc1b15647c Parser: Test for exact missing ':' location column
This ensures compiler points to the right place when claiming that ':' is
missing.
2015-04-21 11:32:13 +02:00
def
fc76c93a19 Fix expected tester messages 2015-04-21 11:17:24 +02:00
Andreas Rumpf
3e2c086b1f Merge pull request #2575 from nanoant/test-for-error-location-column
Tests: Optional error location column spec
2015-04-21 08:51:16 +02:00
Araq
e55f5d1fd4 fixes #2505, fixes #1853, fixes #2522 2015-04-20 21:25:49 +02:00
Adam Strzelecki
505836385c Tests: Optional error location column spec
This allows some test to specify error location column, to ensure compiler is
generating diagnostics pointing to exactly right place of an error.
2015-04-20 21:03:57 +02:00
Araq
2b4e233510 Merge branch 'devel' of https://github.com/Araq/Nim into devel 2015-04-20 11:44:54 +02:00
Araq
9abfc60db4 parse 'of' branches for macros properly 2015-04-19 14:25:16 +02:00
Araq
89cbf092b2 fixes a serious codegen bug that caused to emit wrong barriers in rare cases 2015-04-19 13:36:22 +02:00
Araq
5cea6807e1 fixes #2476 2015-04-19 02:43:19 +02:00
Araq
5146624f0d disabled JS test 2015-04-18 01:18:23 +02:00
Andreas Rumpf
b4e938ca21 Merge pull request #2503 from ReneSac/arrowLike
Restrict arrow-like operators to those ending with `->`, `~>` or `=>`
2015-04-15 19:24:44 +02:00
Simon Hafner
c55f884b5c integrated realtimegc stuff into testament 2015-04-13 22:36:35 -05:00