summary refs log tree commit diff stats
path: root/tests/system
Commit message (Collapse)AuthorAgeFilesLines
* Ref #12700 add testcase (#17096)flywind2021-02-191-1/+9
| | | | | | | * fix js unsigned integer * better * ref #12700 add testcase
* system/excpt: let the OS handle termination on signal (#16712)alaviss2021-02-191-0/+20
|
* fix stringify unsigned integer in JS and JS VM (#17086)flywind2021-02-181-0/+28
| | | | | * fix js unsigned integer * better
* [backport:1.4] JS cstring null fixes (#16979)hlaaftana2021-02-111-1/+24
| | | | | * [backport:1.4] JS cstring null fixes * fix JS move string * make it look cleaner
* fix #16650 (#16660)flywind2021-01-101-7/+12
|
* fix #12311 (#16578)flywind2021-01-041-0/+7
|
* follow #16505 move and active tests (#16508)flywind2020-12-301-0/+26
| | | | | * fix printing negative zero in JS backend * move tests
* remove some noises in tests (#16448)flywind2020-12-271-4/+4
|
* testament: error instead of silently ignore invalid targets; remove ↵Timothee Cour2020-12-141-1/+1
| | | | | | | | | | | pointless alias target vs targets; document matrix; DRY (#16343) * testament: error instead of silently ignore invalid targets * s/target/targets/ * fix test; refs #16344 * address comments * Update testament/specs.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* cleanup docs and tests (#16235)flywind2020-12-031-9/+9
| | | | | * js module also uses runnableExamples * cleanup docs and tests
* better addInt (#16160)flywind2020-12-011-0/+46
| | | | | | * better addint * Update lib/system/strmantle.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* make megatest consistent with unjoined tests wrt newlines, honor newlines in ↵Timothee Cour2020-11-281-2/+0
| | | | | | | output spec (#16151) * fix megatest newlines * still allow missing trailing newline for now but in a more strict way than before
* inc and dec are atomic in JS backend (#16129)flywind2020-11-251-0/+9
|
* better nativestacktrace support; refs #15284; backport [1.2] (#15384)Andreas Rumpf2020-09-221-0/+18
| | | | | | | | | | | | | | | | | * nimStackTraceOverride: enable stack traces in exceptions This is a two-step stack trace collection scheme, because re-raised exceptions will collect multiple stack traces but use them rarely, when printing info about an uncaught exception, so it makes sense to only do the cheap stack unwinding all the time and the relatively expensive debugging information collection on-demand. `asyncfutures` implements its own `$` proc for printing `seq[StackTraceEntry]`, so we have to add the debugging info there, just like we do for the private `$` proc in `system/excpt`. * cleaned up PR #15284 Co-authored-by: Ștefan Talpalaru <stefantalpalaru@yahoo.com>
* fix #14912, make `--useVersion:1.0` work again (#14945)Miran2020-07-101-0/+50
| | | | | * fix #14912, make `--useVersion:1.0` work again * a better fix * add test
* Clean out Deprecated proc (#14797)Juan Carlos2020-06-291-2/+2
| | | | * Remove and/or clean out Deprecated 'add' proc for floats * Update a test
* fix #14350, cstrings in JS init as null (#14355)hlaaftana2020-05-151-0/+7
| | | | * fix #14350, cstrings in JS init as null
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-281-8/+8
| | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here.
* `$` now works for unsigned intergers with `nim js` (#14122)Timothee Cour2020-04-271-0/+72
| | | | * $(unsigned) now works for js * move NimMajor+friends closer to NimVersion according as per reviewer feedback
* #12103 - CI for OpenBSD (#12105)Euan2020-04-212-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Working on OpenBSD CI * Condense steps into 2 steps to make output easier to follow. * Move up one directory after csources build. * Remove FreeBSD build manifest and add OpenBSD test ignores for coroutines and hot code reloading. * If runCI fails, run the test results script. * Add email trigger for build failure * Remove .git from repository URL * Disable SFML test on OpenBSD * Disable tgetaddrinfo on OpenBSD as only UDP and TCP protocols are supported. * Remove getFilePermissions as it causes CI test failures with NimScript. * Set clang as cc in nim.cfg and use gmake to build csources. * Add getCurrentDir to nimscript. * Remove duplicate getCurrentDir and check for not weirdTarget. * Add CI badge for OpenBSD. * Disable tests which allocate lots of memory for OpenBSD. * Use `CORO_BACKEND_SETJMP` on OpenBSD rather than ucontext. * Simplify building of koch * Disable t8657 on OpenBSD. See issue #13760. * Fix #12142 - tarray_of_channels fails on OpenBSD * Disable thhtpclient_ssl and tosprocterminate on OpenBSD. These tests can be enabled at a later date after fixing them. * Install libffi. * Set path to libc for openbsd. * Disable tevalffi for now. * Remove tevalffi.nim. * Use ncpuonline sysctl rather than ncpu. * Disable tacceptcloserace and tasynchttpserver on OpenBSD. * Enable tacceptcloserace and tasynchttpserver. * Fix #13775 as suggested by @alaviss - use /bin/cat on OpenBSD rather than /bin/sh. * Enable test on OpenBSD. * Disable tflowvar on OpenBSD.
* faster CIs (#13803)Miran2020-03-301-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ttables: smaller table, 5x speedup * thavlak: less iterations, less loops; 30% speedup * tasyncclosestall: shorter timeout; 35% speedup * gcleak4: less iterations, 2x speedup * ttimes: remove deprecated stuff * tdangerisrelease: remove cpp backend, 3x speedup * tfrexp1: smaller range, 2x speedup * trtree: fix warnings, less iterations, 6x speedup * tasyncawait_cyclebreaker: smaller swarm size; 2x speedup * trealloc: smaller number of iterations; 10x speedup * towned_binary_tree: less iterations, 4x speedup * tclosure: remove unused code, less iterations; 2x speedup * twaitany: less durations; 1.4x speedup * tasync_misc: less iterations, 2x speedup * t8535: smaller sleep, 1.5x speedup * tmanyjoin: smaller sleep, 2x speedup * t12221: shorter sleeps, removed two slower tests; 1.6x speedup * tfuturestream: smaller sleep; 1.5x speedup * growobjcrash: less iterations; 2x speedup * ttryrecv: smaller sleep; 1.5x speedup * treusetvar: less threads; 2x speedup * delete tthreadanalysis2, basically a duplicate of tthreadanalysis * t7758: less iterations, 1.5x speedup * tasyncawait: smaller swarm, less messages; 1.5x speedup * tjsandnativeasync: smaller sleep, 1.5x speedup * tpendingcheck: smaller sleep, 1.5x speedup * remove rodfiles test category * move tseq from its own category to 'collections' category * remove unneeded tests and helpers from 'assert' category * stdlib: merge tbitops2 into tbitops * remove 'trepr2' from 'stdlib' cat * merge 'tstreams' into one file * remove 'tinefficient_const_table' from 'ccbugs' cat * merge 'tcollections_to_string' into 'tcollections' * tblocking_channel: smaller sleep, small speedup * tconvexhull: less iterartions; 1.2x speedup * merge 'tdeepcopy2' into 'tdeepcopy' * merge 'tdisjoint_slice2' into 'tdisjoint_slice1' * tmissing_deepcopy: smaller sequence * tsendtwice: smaller arrays; 5x speedup * remove 'tindexerrorformatbounds' * disable multimethod tests * remove 'gc:none' and 'refc' without 'd:useRealtimeGC' from gc tests * koch.nim: bootstrap just with '-d:release', no need for 'csource' * add github workflow for documentation * testament: no need for 8 sub-second decimals
* rename `lenTuple` and `lenVarargs` (#13639)Miran2020-03-121-9/+10
| | | | | | | | | | | * rename 'lenTuple' to 'tupleLen' Rationale: `lenTuple` is a tuple consisting of lengths (e.g. `(1, 5, 0)`), `tupleLen` is a length of a tuple (e.g. `tupleLen((1, 5, 0) == 3`) * rename 'lenVarargs' to 'varargsLen' The same rationale as a previous commit. Consistency.
* cleanup Ordinal (#13501)Timothee Cour2020-02-271-0/+17
|
* Revert "printing float values will have one more digit. (#13276) [backport]" ↵Timothee Cour2020-02-081-0/+4
| | | | | (#13363) This reverts commit b2c6db97f9f477f6999fa9c7aae5e32f10b6b3fe.
* printing float values will have one more digit. (#13276) [backport]Arne Döring2020-02-071-4/+0
| | | | * printing float values will have one more digit. Fixes #13196
* miscellaneous bug fixes (#13291)Timothee Cour2020-01-301-0/+9
| | | | | | | | * fix for emscripten etc * add testcase for #13290 * replace deprecated isNilOrWhitespace
* lenVarargs: number of varargs elements (#12907)Timothee Cour2019-12-231-0/+59
|
* fixes #12315 [backport]; refs #12314 (#12385)Andreas Rumpf2019-10-081-3/+17
|
* azure: disable failing testsLeorize2019-10-031-4/+1
|
* fix min/max for float numbers (#12068)Arne Döring2019-09-021-1/+11
|
* Fix to int to biggest int (#12066)Arne Döring2019-08-271-0/+15
| | | | | * fix to(Biggest)Int * kill toFloat magics as well
* more enhancements for #11618 (#11976)Andreas Rumpf2019-08-181-0/+27
| | | | | | * finish the Windows IO layer changes; refs #11618 * added system.getOsFileHandle which is less error-prone on Windows * make tests green again
* fixes #11447Andreas Rumpf2019-07-061-0/+7
|
* disable talloc2 on 32 bits (#10656)Arne Döring2019-02-131-36/+35
|
* 32 bit fixes (#10608)Arne Döring2019-02-132-33/+36
|
* properly deprecate parseopt2 (#10452)Miran2019-01-251-2/+2
|
* add `isNamedTuple`; make $(1, 2) be (1, 2) instead of (Field0: 1, Field1: 2) ↵Timothee Cour2019-01-081-0/+11
| | | | | | | | | | | | | which leaked implementation detail (#10070) * add `isNamedTuple`; make $(1, 2) be (1, 2) instead of leaking implementation detail (Field0: 1, Field1: 2) fixes this: #8670 (comment) /cc @alehander42 @Vindaar @mratsim * Note: isNamedTuple is useful in other places, eg #10010 (comment) * move isNamedTuple to helpers.nim to avoid exposing new symbol to system.nim * remove workaround in tests/vm/tissues.nim failing test now that #10218 was makes it work
* fix bug in doAssertRaises when exception==Exception (#10172)Timothee Cour2019-01-041-0/+12
| | | | | * fix bug in doAssertRaises when exception==Exception * add testcase for doAssertRaises
* revives: Move typetraits.`$` to system. Fixes #5827 (#10071)Timothee Cour2018-12-301-0/+14
| | | | | | * Move typetraits.`$` to system. Fixes #5827. * revive PR; adjust code to make sure everything works and add tests * fix tests/concepts/tstackconcept.nim * address comments
* testament: joinable is now an explicit concept of a test specAndreas Rumpf2018-12-114-0/+8
|
* lots of small changesArne Döring2018-12-111-1/+1
|
* megatest can be executedArne Döring2018-12-111-1/+4
|
* cleanup tests; don't use non-working 'msg' spec fieldAraq2018-11-231-1/+1
|
* more eyewashArne Döring2018-11-233-2/+9
|
* disable tio.nim, it just causes problemsArne Döring2018-11-231-0/+1
|
* maybe this time?Arne Döring2018-11-231-9/+17
|
* hopefully this time the tests will compile on the serverArne Döring2018-11-231-3/+0
|
* updated tests to be executedArne Döring2018-11-231-4/+7
|
* make run the default action of a test in testerArne Döring2018-11-231-4/+0
|
* fix segfault when calling shallow() on an empty string (#9782) [backport]Ștefan Talpalaru2018-11-221-0/+7
| | | | | | | | | shallow() casts its string argument to a seq and then tries to access its fields. Guess what happens when that string is nil, which seems to be the representation of an empty string (both the default value and an explicitly assigned ""). Segfault encountered when running "ntags -R ." on a large project. The relevant line: https://bitbucket.org/nimcontrib/ntags/src/a1c62c38e539877c105fbe4e08d06b76232f8017/ntags.nim#lines-125