summary refs log tree commit diff stats
path: root/tests/system
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-05-23 08:57:16 +0200
committerAraq <rumpf_a@web.de>2014-05-23 08:57:16 +0200
commitd2dbcf2fa44aa76c6c7ed2c07641560640e6bc6b (patch)
tree86ce8b05f9f73fa637f1c43cbd68aed6a4087a24 /tests/system
parent417b9f5a1d13f26842b1337395a0f5b57827cc12 (diff)
downloadNim-d2dbcf2fa44aa76c6c7ed2c07641560640e6bc6b.tar.gz
progress with futures
Diffstat (limited to 'tests/system')
-rw-r--r--tests/system/tsysspawn.nim31
-rw-r--r--tests/system/tsysspawnbadarg.nim9
2 files changed, 0 insertions, 40 deletions
diff --git a/tests/system/tsysspawn.nim b/tests/system/tsysspawn.nim
deleted file mode 100644
index fc7921b0e..000000000
--- a/tests/system/tsysspawn.nim
+++ /dev/null
@@ -1,31 +0,0 @@
-discard """
-  output: '''4
-8'''
-  cmd: "nimrod $target --threads:on $options $file"
-"""
-
-import threadpool
-
-var
-  x, y = 0
-
-proc p1 =
-  for i in 0 .. 10_000:
-    discard
-
-  atomicInc x
-
-proc p2 =
-  for i in 0 .. 10_000:
-    discard
-
-  atomicInc y, 2
-
-for i in 0.. 3:
-  spawn(p1())
-  spawn(p2())
-
-sync()
-
-echo x
-echo y
diff --git a/tests/system/tsysspawnbadarg.nim b/tests/system/tsysspawnbadarg.nim
deleted file mode 100644
index ce3c5611b..000000000
--- a/tests/system/tsysspawnbadarg.nim
+++ /dev/null
@@ -1,9 +0,0 @@
-discard """
-  line: 7
-  errormsg: "'spawn' takes a call expression of type void"
-  cmd: "nimrod $target --threads:on $options $file"
-"""
-
-import threadpool
-
-spawn(1)