summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/avr/thello.nim2
-rw-r--r--tests/destructor/trecursive.nim2
-rw-r--r--tests/ic/config.nims2
-rw-r--r--tests/manyloc/standalone2/tavr.nim.cfg1
-rw-r--r--tests/niminaction/Chapter7/Tweeter/src/tweeter.nim1
-rw-r--r--tests/stdlib/ttasks.nim2
-rw-r--r--tests/system/tgcnone.nim2
7 files changed, 8 insertions, 4 deletions
diff --git a/tests/avr/thello.nim b/tests/avr/thello.nim
index a0191815c..7ebaeae5f 100644
--- a/tests/avr/thello.nim
+++ b/tests/avr/thello.nim
@@ -1,5 +1,5 @@
 discard """
-  cmd: "nim c --compileOnly --os:standalone --exceptions:quirky -d:noSignalHandler -d:danger $file"
+  cmd: "nim c --compileOnly --os:standalone --exceptions:quirky -d:noSignalHandler -d:danger --threads:off $file"
   action: "compile"
 """
 
diff --git a/tests/destructor/trecursive.nim b/tests/destructor/trecursive.nim
index 17a40e5a9..e7afa6ba9 100644
--- a/tests/destructor/trecursive.nim
+++ b/tests/destructor/trecursive.nim
@@ -47,7 +47,7 @@ proc `=destroy`(x: var MyObject) =
 proc `=`(x: var MyObject, y: MyObject) {.error.}
 
 proc newMyObject(i: int): MyObject = 
-  result.p = create(int)
+  result.p = createShared(int)
   result.p[] = i
 
 proc test: seq[MyObject] = 
diff --git a/tests/ic/config.nims b/tests/ic/config.nims
new file mode 100644
index 000000000..76b29a6aa
--- /dev/null
+++ b/tests/ic/config.nims
@@ -0,0 +1,2 @@
+when defined(windows):

+  --threads:off

diff --git a/tests/manyloc/standalone2/tavr.nim.cfg b/tests/manyloc/standalone2/tavr.nim.cfg
index e5291969d..2a31618d0 100644
--- a/tests/manyloc/standalone2/tavr.nim.cfg
+++ b/tests/manyloc/standalone2/tavr.nim.cfg
@@ -2,3 +2,4 @@
 --cpu:avr
 --os:standalone
 --compileOnly
+--threads:off
diff --git a/tests/niminaction/Chapter7/Tweeter/src/tweeter.nim b/tests/niminaction/Chapter7/Tweeter/src/tweeter.nim
index fe39278fb..2fac949b9 100644
--- a/tests/niminaction/Chapter7/Tweeter/src/tweeter.nim
+++ b/tests/niminaction/Chapter7/Tweeter/src/tweeter.nim
@@ -1,5 +1,6 @@
 discard """
 action: compile
+matrix: "--threads:off"
 """
 
 import asyncdispatch, times
diff --git a/tests/stdlib/ttasks.nim b/tests/stdlib/ttasks.nim
index 75fed9f9b..e90823aba 100644
--- a/tests/stdlib/ttasks.nim
+++ b/tests/stdlib/ttasks.nim
@@ -1,6 +1,6 @@
 discard """
   targets: "c cpp"
-  matrix: "--gc:orc"
+  matrix: "--gc:orc --threads:off"
 """
 
 import std/[tasks, strformat]
diff --git a/tests/system/tgcnone.nim b/tests/system/tgcnone.nim
index 700176d5f..47c6c6014 100644
--- a/tests/system/tgcnone.nim
+++ b/tests/system/tgcnone.nim
@@ -1,5 +1,5 @@
 discard """
-  matrix: "--gc:none -d:useMalloc"
+  matrix: "--gc:none -d:useMalloc --threads:off"
 """
 # bug #15617
 let x = 4