Files
Nim/tests/stdlib/tregistry.nim
flywind 085580a2c8 fix #14010(fix std/registry + arc) (#17551)
* fix nim js cmp fails at CT

* fix #14010

* Update tests/stdlib/tregistry.nim

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>

* Update tregistry.nim

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
2021-03-29 10:50:58 +02:00

16 lines
382 B
Nim

discard """
disabled: "unix"
matrix: "--gc:refc; --gc:arc"
"""
when defined(windows):
import std/registry
block: # bug #14010
let path = "Environment"
let key = "D20210328T202842_key"
let val = "D20210328T202842_val"
let handle = HKEY_CURRENT_USER
setUnicodeValue("Environment", key, val, handle)
doAssert getUnicodeValue(path, key, handle) == val