Aman Gupta
b33d97621d
only compile coro.nim by avoiding "when isMainModule" string match in
...
testament/tester
FAIL: coro.nim
Test "lib/pure/coro.nim" in category "lib"
Failure: reOutputsDiffer
Expected:
Gotten:
c1
c2
c2
c1
c2
c1
c2
c1
c1 exits
c2 exits
done 1100220033
2015-10-02 18:56:57 -07:00
Aman Gupta
2fbdf9320c
fix float comparision failure in math tests
...
FAIL: math.nim
Test "lib/pure/math.nim" in category "lib"
Failure: reExitcodesDiffer
Expected:
exitcode: 0
Gotten:
exitcode: 1
Output:
Traceback (most recent call last)
math.nim(478) math
system.nim(3343) failedAssertImpl
system.nim(3335) raiseAssert
system.nim(2531) sysFatal
Error: unhandled exception: tgamma(5.0'f64) == 24.0'f64 [AssertionError]
2015-10-02 18:34:04 -07:00
Aman Gupta
1639de0a4e
remove trailing whitespace requirement from subexes test file
2015-10-02 18:08:23 -07:00
Aman Gupta
2f7802bea3
fix rawsockets test
...
FAIL: trawsockets.nim
Test "tests/cpp/trawsockets.nim" in category "cpp"
Failure: reNimcCrash
Expected:
Gotten:
Hint: system [Processing]
Hint: trawsockets [Processing]
Hint: rawsockets [Processing]
Hint: unsigned [Processing]
lib/pure/rawsockets.nim(15, 8) Warning: unsigned is deprecated [Deprecated]
Hint: os [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: times [Processing]
Hint: posix [Processing]
CC: compiler_trawsockets
CC: stdlib_system
CC: stdlib_rawsockets
CC: stdlib_unsigned
CC: stdlib_os
CC: stdlib_strutils
Error: execution of an external compiler program 'clang++ -c -w -I/Users/tmm1/code/nim/lib -o tests/cpp/nimcache/stdlib_rawsockets.o tests/cpp/nimcache/stdlib_rawsockets.cpp' failed with exit code: 256
tests/cpp/nimcache/stdlib_rawsockets.cpp:355:8: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *'
LOC6 = gai_strerror(gairesult);
^ ~~~~~~~~~~~~~~~~~~~~~~~
tests/cpp/nimcache/stdlib_rawsockets.cpp:499:8: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *'
LOC5 = hstrerror(h_errno);
^ ~~~~~~~~~~~~~~~~~~
tests/cpp/nimcache/stdlib_rawsockets.cpp:650:8: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *'
LOC9 = inet_ntop(AF_INET6, ((void*) (addr6)), result->data, ((NI32)chckRange((result ? result->len : 0), ((NI32) (-2147483647 -1)), ((NI32) 2147483647))));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tests/cpp/nimcache/stdlib_rawsockets.cpp:771:10: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *'
LOC17 = inet_ntop(name.sin6_family, ((void*) ((&name))), ((NCSTRING) (buf)), ((NI32)chckRange(((NI)sizeof(TY143006)), ((NI32) (-2147483647 -1)), ((NI32) 2147483647))));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tests/cpp/nimcache/stdlib_rawsockets.cpp:859:10: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *'
LOC17 = inet_ntop(name.sin6_family, ((void*) ((&name))), ((NCSTRING) (buf)), ((NI32)chckRange(((NI)sizeof(TY143006)), ((NI32) (-2147483647 -1)), ((NI32) 2147483647))));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 errors generated.
2015-10-02 16:00:33 -07:00
Aman Gupta
59d226221b
Merge remote-tracking branch 'origin/devel' into fix-test-failures
2015-10-02 13:38:35 -07:00
Hans Raaf
437603a812
Added ReadIOEffect because thats what happens on OSX.
2015-10-02 13:54:55 +02:00
Andreas Rumpf
c85fbb6fd4
Merge pull request #3402 from tmm1/exec-processes-after-cb
...
Add afterRunEvent callback to execProcesses()
2015-10-02 13:21:46 +02:00
Aman Gupta
f89c247a89
fix test failure in coro.nim
...
FAIL: coro.nim
Test "lib/pure/coro.nim" in category "lib"
Failure: reNimcCrash
Expected:
Gotten:
Coroutines require -d:nimCoroutines
2015-10-01 12:05:45 -07:00
Aman Gupta
18882d006b
fix test failures in subexes due to missing trailing whitespace
...
FAIL: subexes.nim
Test "lib/pure/subexes.nim" in category "lib"
Failure: reExitcodesDiffer
Expected:
exitcode: 0
Gotten:
exitcode: 1
Output:
Traceback (most recent call last)
subexes.nim(385) subexes
system.nim(3335) raiseAssert
system.nim(2531) sysFatal
Error: unhandled exception: "$#($\', \'10c\'\x0A \'{#..})" % ["doAssert", "longishA", "longish"] ==
2015-10-01 12:05:45 -07:00
Andrey Sobolev
4c53a3a7a5
Merge remote-tracking branch 'nim-lang/devel' into emscripten-support
2015-10-01 22:08:29 +06:00
JamesP
2f4cc4efce
add a few type checks to limit type to SomeInteger
...
(adding a compund type to the Rational type definition
made it too difficult to define new variables
using integer literals)
2015-10-01 15:07:23 +10:00
JamesP
d6b7f0ad9e
add assertion for zero denominator
2015-10-01 15:02:46 +10:00
Aman Gupta
61ace9e394
fix failure in lib/pure/ospaths.nim
...
FAIL: ospaths.nim
Test "lib/pure/ospaths.nim" in category "lib"
Failure: reNimcCrash
Expected:
Gotten:
invalid pragma: rtl
2015-09-30 20:14:14 -07:00
Aman Gupta
9f33baf51b
add afterRunEvent callback to execProcesses
2015-09-30 19:02:23 -07:00
Andreas Rumpf
1a63e630ae
Merge pull request #3345 from rbehrends/no-unmap
...
Add option to disable munmap() use in the allocator.
2015-09-30 21:10:36 +02:00
Araq
dd2225fe07
NimScript: --threads:on works in a nims file
2015-09-30 17:18:52 +02:00
Radu Oana
4bba8e026a
use const instead of let
2015-09-30 09:49:22 -04:00
Radu Oana
374b65289c
Move magic numbers to const
2015-09-30 08:20:24 -04:00
Adam Strzelecki
144dc8f8ad
Move deprecated modules into lib/deprecated/
...
This gives clear indication what modules are now deprecated and reduce clutter
in non-deprecated module directories.
2015-09-30 12:26:25 +02:00
Adam Strzelecki
9b5b254620
rawsockets: Fix getaddrinfo on FreeBSD
...
Currently due bug in FreeBSD passing AI_V4MAPPED to addrinfo.ai_flags causes
getaddrinfo to fail with EAI_BADFLAGS ("Invalid value for ai_flags"). That's
why we should disable this flag for now on FreeBSD.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198092
2015-09-30 12:25:57 +02:00
Andrey Sobolev
4351c62161
Merge remote-tracking branch 'nim-lang/devel' into emscripten-support
2015-09-30 14:23:25 +06:00
Dominik Picheta
1fa7b62763
Merge pull request #3388 from nanoant/patch/kqueue-support-for-osx-and-freebsd
...
kqueue support for OS X and Free/Open/NetBSD
2015-09-29 23:28:13 +01:00
Araq
1b7d8246c1
NimScript: setCommand takes an optional project filename
2015-09-29 20:44:12 +02:00
Araq
27bdf5c45c
osproc: free resources properly for the new poInteractive flag
2015-09-29 20:00:28 +02:00
Araq
5f7ad9131f
added osproc.poInteractive and osproc.hasData; both experimental
2015-09-29 19:30:47 +02:00
Araq
4e44ded2be
winlean additions; preparing for osproc patch to use named pipes
2015-09-29 19:30:45 +02:00
Araq
c852143f3a
os.walkDir supports yielding relative paths
2015-09-29 19:30:44 +02:00
Araq
ab6f8f6e5b
fixesunicode.lastRune
2015-09-29 19:30:44 +02:00
Araq
985594cbb8
added streams.readAll proc
2015-09-29 19:30:43 +02:00
Adam Strzelecki
4c537bd1e5
selectors: Cleanup a bit epoll flavor
...
1. Remove select documentation that is duplicate of nimdoc section below
2. Simplify a bit register proc code
2015-09-29 19:28:10 +02:00
Adam Strzelecki
248f52fea7
Selectors using OS X & Free/Open/NetBSD kqueue API
2015-09-29 19:27:41 +02:00
Adam Strzelecki
900ea81030
lib/posix: OS X & Free/Open/NetBSD kqueue API
2015-09-29 19:27:10 +02:00
Andrey Sobolev
8b2c9964ab
Merge remote-tracking branch 'nim-lang/devel' into emscripten-support
2015-09-29 11:44:04 +06:00
Dominik Picheta
d8a10457e2
Fixes #3207 .
2015-09-28 23:04:17 +01:00
Andrey Sobolev
76a49bfcea
Merge remote-tracking branch 'nim-lang/devel' into emscripten-support
2015-09-28 22:21:13 +06:00
Dominik Picheta
0370dff8e0
Merge pull request #3378 from jlp765/streamsEx
...
Streams examples & default newFileStream() file mode
2015-09-27 13:46:04 +01:00
Dominik Picheta
f9eda7e0b1
Merge pull request #3376 from TheAnonymous/devel
...
Added examples in documenation for add del delete repr insert sizeof high low
2015-09-26 10:45:38 +01:00
sergey.anufriev
64737c8496
added proc to change an element tag and proc to insert xmlnode child
2015-09-26 10:09:07 +06:00
Jakob Oesterling
ca9845dcc0
fixed wrong examples
2015-09-26 01:08:49 +02:00
JamesP
ff9a3d39d7
add default file mode to newFileStream()
2015-09-26 08:18:42 +10:00
JamesP
eed1000252
add examples to top of module for stringStream and fileStream
2015-09-26 08:18:09 +10:00
Jakob Oesterling
709c4f7229
Merge branch 'devel' of github.com:TheAnonymous/Nim into devel
2015-09-25 18:39:30 +02:00
Jakob Oesterling
e429810220
added examples in documenation for add del delete repr insert
2015-09-25 18:38:32 +02:00
Jakob Oesterling
c04ae96e11
added examples in documenation for sizeof high low
2015-09-25 18:08:10 +02:00
Andrey Sobolev
0a32769e0b
Merge remote-tracking branch 'nim-lang/devel' into emscripten-support
2015-09-25 21:31:09 +06:00
Dominik Picheta
9352772174
Merge pull request #3369 from TheAnonymous/devel
...
Added examples in documenation for len dec inc incl excl
2015-09-25 15:55:19 +01:00
Andrey Sobolev
30362315a0
Merge remote-tracking branch 'nim-lang/devel' into emscripten-support
2015-09-25 14:05:33 +06:00
Andreas Rumpf
308a0d0a55
Merge pull request #3316 from jlp765/memfilesWinClose
...
bug fix: close() only unmapViewOfFile when fHandle is valid.
2015-09-24 16:04:42 +02:00
Jakob O.
b9d00c8693
Update system.nim
2015-09-24 10:07:58 +02:00
Dominik Picheta
d92f252609
Merge pull request #3364 from tmm1/osx-ssl-compile
...
Avoid referencing undefined SSLv2_method on MacOSX
2015-09-24 01:16:57 +01:00