Nim/lib/pure
Elijah Shaw-Rutschman 8a004e2fc0
Add test coverage for atomics (#15193)
* Add test coverage for atomics

Signed-off-by: Elijah Shaw-Rutschman <elijahr@gmail.com>

* Fix compareExchange bugs for non-trivial objects

Bugs fixed:

1. compareExchange would not set the desired value in the success case.
2. compareExchange would not set var expected to the found value in the failure case.
3. withLock would spin forever running the unit tests. try..body..finally prevents this. Not sure why this makes a difference, since an exception wasn’t being raised, but clearing the guard in a finally block seems correct anyways.

Signed-off-by: Elijah Shaw-Rutschman <elijahr@gmail.com>
2020-08-18 18:02:10 +02:00
..
collections deques.nim: Refactor the toDeque functionality (#15166) 2020-08-07 22:54:34 +02:00
concurrency Add test coverage for atomics (#15193) 2020-08-18 18:02:10 +02:00
includes fix #14082, don't crash on incorrectly formatted input (#14977) [backport] 2020-07-17 10:59:53 +02:00
ioselects Set O_NONBLOCK flag atomically (#13934) 2020-04-22 20:24:45 +02:00
unidecode fix unidecode.unidecode example input string 2019-04-20 21:10:52 -05:00
algorithm.nim init checks and 'out' parameters (#14521) 2020-06-23 10:53:57 +02:00
async.nim Unify async macro and futures for js and native targets 2018-01-05 16:40:51 +02:00
asyncdispatch.nim export asyncdispatch handles (#15140) 2020-08-01 21:27:21 +02:00
asyncdispatch.nim.cfg Rename *.nimrod.cfg to *.nim.cfg 2015-02-03 09:04:24 +01:00
asyncfile.nim fix #15148 (#15149) 2020-08-08 07:24:54 +02:00
asyncftpclient.nim fix several newline problems (#15028) [backend] 2020-07-21 22:49:08 +02:00
asyncfutures.nim change some Exceptions to CatchableError or Defect, fixes #10288 (#14069) 2020-04-22 16:49:41 +02:00
asynchttpserver.nim Fix asynchttpserver newline breaking content-length (#14565) [backport] 2020-06-06 12:20:11 +02:00
asyncmacro.nim fix #14846; add macros.extractDocCommentsAndRunnables (#14849) 2020-07-01 09:26:23 +02:00
asyncnet.nim asyncnet: don't try to close the socket again [backport] (#15174) 2020-08-12 08:04:54 +02:00
asyncstreams.nim fixes #14402 (#14908) 2020-07-08 08:21:55 +02:00
base64.nim Fix style inconsistencies due to the previous commit 2020-07-06 11:24:43 +02:00
bitops.nim init checks and 'out' parameters (#14521) 2020-06-23 10:53:57 +02:00
browsers.nim enforce browsers.nim only handles URLs [backport] (#15045) 2020-07-23 11:03:39 +02:00
cgi.nim fix #14082, don't crash on incorrectly formatted input (#14977) [backport] 2020-07-17 10:59:53 +02:00
colors.nim fixed #14839 (#14840) 2020-06-28 13:38:57 +02:00
complex.nim [backport] fix #12528, fix #12525: incorrect generic type resolution for default values (#12538) 2019-10-28 16:56:38 +01:00
cookies.nim make more tests green 2018-04-30 02:52:58 +02:00
coro.nim Fix typo on CoroutineRef* doc (#15179) 2020-08-12 04:46:16 +02:00
coro.nimcfg fix test failure in coro.nim 2015-10-01 12:05:45 -07:00
cstrutils.nim Clarify JS cstring len (#14184) 2020-05-05 10:34:37 +02:00
db_common.nim [backport] run nimpretty on the remaining files 2019-09-30 13:58:17 +02:00
distros.nim Fix OS detection in a docker container (#13172) 2020-04-22 07:49:42 +02:00
dynlib.nim docs: dlimport -> dynlib (#15175) 2020-08-11 14:49:57 +02:00
encodings.nim encodings: use only one iconv definition [backport:1.2] (#14741) 2020-06-21 19:28:03 +02:00
endians.nim [backport] run nimpretty on os-related stuff 2019-09-30 13:58:15 +02:00
fenv.nim Deprecate DCE:on (#13839) 2020-04-02 02:58:43 +02:00
future.nim renamed future.nim to sugar.nim 2018-04-06 11:59:49 +02:00
hashes.nim Fix #14394 (#14395) 2020-05-18 17:43:06 +01:00
htmlgen.nim => supports pragmas & names (+ changed behavior) (#14200) 2020-05-03 10:22:49 +02:00
htmlparser.nim [backport] run nimpretty on parsers 2019-09-30 13:58:08 +02:00
httpclient.nim fix several newline problems (#15028) [backend] 2020-07-21 22:49:08 +02:00
httpcore.nim httpcore: Add http code 308 Permanent Redirect (#14639) 2020-06-12 10:16:38 +02:00
json.nim json.nim: smaller init size (#15048) 2020-07-23 15:42:12 +02:00
lenientops.nim fix #13218: avoid some irrelevant warnings for nim doc,rst2html,--app:lib, + other fixes (#13550) 2020-03-13 20:42:41 +01:00
lexbase.nim StringStream & more stdlib modules support for JS/NimScript (#14095) 2020-04-28 19:44:52 +02:00
logging.nim fix index error (#14974) 2020-07-14 13:15:22 +02:00
marshal.nim StringStream & more stdlib modules support for JS/NimScript (#14095) 2020-04-28 19:44:52 +02:00
math.nim fix #15033 (#15034) 2020-07-22 10:30:46 +02:00
md5.nim [backport] run nimpretty on hashes 2019-09-30 13:58:10 +02:00
memfiles.nim fixes #14760 (#14769) 2020-06-23 15:17:17 +02:00
mersenne.nim Add Documentation (#13811) 2020-03-31 15:47:57 +02:00
mimetypes.nim better strict funcs, WIP (#15199) 2020-08-18 12:45:22 +02:00
nativesockets.nim fix docs for nativesocket read/write selects (#15010) 2020-07-18 16:39:41 +02:00
net.nim fixes #15177, the error message is now what it should have been (#15195) 2020-08-17 14:32:52 +02:00
nimprof.nim fix deprecations and other warnings (#13748) 2020-03-25 19:15:34 +01:00
nimprof.nim.cfg Rename *.nimrod.cfg to *.nim.cfg 2015-02-03 09:04:24 +01:00
nimtracker.nim make memory tracker work without onThreadCreation 2017-03-14 15:45:35 +01:00
oids.nim [backport] run nimpretty on hashes 2019-09-30 13:58:10 +02:00
options.nim Change UnpackError with UnpackDefect (#14457) 2020-05-27 08:34:13 +02:00
os.nim deprecate existsDir; use dirExists instead (#14884) 2020-07-03 23:04:23 +02:00
osproc.nim Fix #14906 (#14949) 2020-07-18 10:41:33 +02:00
oswalkdir.nim fix #11458 oswalkdir (#13689) 2020-03-19 10:23:05 +01:00
parsecfg.nim Fix typo for literal [ (#13243) 2020-01-24 08:42:03 +00:00
parsecsv.nim parsecsv: fix '\0' being displayed as '0' in docs (#15086) [backport] 2020-07-27 08:17:23 +02:00
parsejson.nim fixed to jsonArrayEnd comment. (#13624) 2020-03-11 08:26:10 +01:00
parseopt.nim fix #13086 (#14987) 2020-07-15 03:46:17 -04:00
parsesql.nim StringStream & more stdlib modules support for JS/NimScript (#14095) 2020-04-28 19:44:52 +02:00
parseutils.nim init checks and 'out' parameters (#14521) 2020-06-23 10:53:57 +02:00
parsexml.nim fixes #13946 (#14302) 2020-05-11 19:12:40 +02:00
pathnorm.nim init checks and 'out' parameters (#14521) 2020-06-23 10:53:57 +02:00
pegs.nim [backport] Docs: Fix broken code-block (#14749) 2020-06-22 08:12:50 +02:00
punycode.nim Add Documentation (#13811) 2020-03-31 15:47:57 +02:00
random.nim added normal variate function (#14725) 2020-06-22 20:48:33 +02:00
rationals.nim Remove the uses of {.procvar.} pragma (#14359) 2020-05-15 23:37:24 +02:00
reservedmem.nim Deprecate and/or remove ospaths (#14767) 2020-06-23 10:51:33 +02:00
ropes.nim StringStream & more stdlib modules support for JS/NimScript (#14095) 2020-04-28 19:44:52 +02:00
segfaults.nim Error -> Defect for defects (#13908) 2020-04-28 19:56:01 +02:00
selectors.nim minor improvement (#15155) 2020-08-04 11:29:57 +02:00
smtp.nim fixes #15177, the error message is now what it should have been (#15195) 2020-08-17 14:32:52 +02:00
smtp.nim.cfg revert moving oids and smtp to graveyard 2019-01-11 08:51:19 +01:00
ssl_certs.nim deprecate existsDir; use dirExists instead (#14884) 2020-07-03 23:04:23 +02:00
ssl_config.nim net: use a secure cipher list by default 2020-06-06 21:11:53 +02:00
stats.nim Documentation, add more examples (#13825) 2020-04-01 19:39:58 +02:00
streams.nim move since from inclrtl to std/private/since (#14188) 2020-05-02 23:51:59 +02:00
streamwrapper.nim Fix #14906 (#14949) 2020-07-18 10:41:33 +02:00
strformat.nim add docs and more tests for debug format strings (#14861) 2020-07-08 22:21:30 +02:00
strmisc.nim Remove the uses of {.procvar.} pragma (#14359) 2020-05-15 23:37:24 +02:00
strscans.nim fix a few dead links and a missing sentence in documentation (#12387) 2019-10-08 15:24:34 -04:00
strtabs.nim better strict funcs, WIP (#15199) 2020-08-18 12:45:22 +02:00
strutils.nim Fix #11352 strutil.insertSep() fails on negative numbers (#15087) 2020-07-28 11:47:22 +02:00
sugar.nim std/with support field assign (#14484) 2020-08-15 01:33:21 +02:00
terminal.nim Fix #12759 (#14967) 2020-07-12 03:31:03 -04:00
times.nim fix mistake in times.nim docs 2020-07-07 22:57:06 +02:00
typetraits.nim typetraits: features and fixes (#14791) 2020-06-30 15:25:53 +02:00
unicode.nim init checks and 'out' parameters (#14521) 2020-06-23 10:53:57 +02:00
unittest.nim Clean up macros (#14959) 2020-07-14 16:44:56 +02:00
uri.nim fix #14082, don't crash on incorrectly formatted input (#14977) [backport] 2020-07-17 10:59:53 +02:00
volatile.nim StringStream & more stdlib modules support for JS/NimScript (#14095) 2020-04-28 19:44:52 +02:00
xmlparser.nim [backport] run nimpretty on parsers 2019-09-30 13:58:08 +02:00
xmltree.nim Remove noSideEffect pragmas (#15143) 2020-08-01 22:00:25 +02:00