diff options
Diffstat (limited to 'tests/threads/tthreadheapviolation1.nim')
-rw-r--r--[-rwxr-xr-x] | tests/threads/tthreadheapviolation1.nim | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/threads/tthreadheapviolation1.nim b/tests/threads/tthreadheapviolation1.nim index 7ca6f7928..379bd55e6 100755..100644 --- a/tests/threads/tthreadheapviolation1.nim +++ b/tests/threads/tthreadheapviolation1.nim @@ -1,12 +1,12 @@ discard """ - line: 12 - errormsg: "write to foreign heap" - cmd: "nimrod cc --hints:on --threads:on $# $#" + errormsg: "'horrible' is not GC-safe" + line: 11 + cmd: "nim $target --hints:on --threads:on $options $file" """ -var +var global: string = "test string" - t: TThread[void] + t: Thread[void] proc horrible() {.thread.} = global = "string in thread local heap!" @@ -16,5 +16,3 @@ proc horrible() {.thread.} = createThread[void](t, horrible) joinThread(t) - - |