about summary refs log tree commit diff stats
path: root/mu.arc.t
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2014-11-19 00:11:05 -0800
committerKartik K. Agaram <vc@akkartik.com>2014-11-19 00:11:05 -0800
commit38e51bc6175397d134b10b0ba87e4bd77067d32d (patch)
tree9dc22dcfe188d770609d564f6fcc28ca1498baaa /mu.arc.t
parent6bb304ca02f3299142f94860f05a015421fbeb4c (diff)
downloadmu-38e51bc6175397d134b10b0ba87e4bd77067d32d.tar.gz
274 - long overdue test for 'fork'
Diffstat (limited to 'mu.arc.t')
-rw-r--r--mu.arc.t11
1 files changed, 11 insertions, 0 deletions
diff --git a/mu.arc.t b/mu.arc.t
index 460465ed..7a8665eb 100644
--- a/mu.arc.t
+++ b/mu.arc.t
@@ -1790,6 +1790,17 @@
   (prn "F - scheduler handles routines blocking on a memory location"))
 ;? (quit)
 
+(reset)
+(new-trace "fork")
+(add-fns
+  '((f1
+      (fork (f2 fn)))
+    (f2
+      ((2 integer) <- copy (4 literal)))))
+(run 'f1)
+(if (~iso memory*.2 4)
+  (prn "F - fork works"))
+
 ; The scheduler needs to keep track of the call stack for each routine.
 ; Eventually we'll want to save this information in mu's address space itself,
 ; along with the types array, the magic buffers for args and oargs, and so on.