diff options
Diffstat (limited to 'tests/stdlib/tosenv.nim')
-rw-r--r-- | tests/stdlib/tosenv.nim | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/stdlib/tosenv.nim b/tests/stdlib/tosenv.nim index f7b3bb9d6..17e397987 100644 --- a/tests/stdlib/tosenv.nim +++ b/tests/stdlib/tosenv.nim @@ -1,5 +1,5 @@ discard """ - matrix: "--threads" + matrix: "--mm:refc; --mm:arc" joinable: false targets: "c js cpp" """ @@ -7,7 +7,9 @@ discard """ import std/os from std/sequtils import toSeq import stdtest/testutils -import std/assertions + +when defined(nimPreviewSlimSystem): + import std/[assertions] # "LATIN CAPITAL LETTER AE" in UTF-8 (0xc386) const unicodeUtf8 = "\xc3\x86" @@ -50,10 +52,13 @@ static: main() main() when defined(windows): + import std/widestrs proc c_wgetenv(env: WideCString): WideCString {.importc: "_wgetenv", header: "<stdlib.h>".} proc c_getenv(env: cstring): cstring {.importc: "getenv", header: "<stdlib.h>".} when not defined(js) and not defined(nimscript): + when defined(nimPreviewSlimSystem): + import std/typedthreads block: # bug #18533 var thr: Thread[void] proc threadFunc {.thread.} = putEnv("foo", "fooVal2") |