summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-08-01 12:04:22 -0700
committerOri Bernstein <ori@markovcorp.com>2017-08-01 12:04:22 -0700
commit4665f57c5a86ade9ef524b3d7380f6fcd1abb0ff (patch)
tree4bae01d65cb59a6064b60f3eab5a80a52fd722b1
parent5d521c36533ee6f834b9dcad90e23feb5f90a680 (diff)
downloadmc-4665f57c5a86ade9ef524b3d7380f6fcd1abb0ff.tar.gz
HACK: Work around bug in mbld.
It picks up the wrong test util library right now.
-rw-r--r--lib/thread/bld.sub2
-rw-r--r--lib/thread/test/atomic.myr4
-rw-r--r--lib/thread/test/mutex.myr4
-rw-r--r--lib/thread/util.myr2
4 files changed, 6 insertions, 6 deletions
diff --git a/lib/thread/bld.sub b/lib/thread/bld.sub
index aef5016..02e5e50 100644
--- a/lib/thread/bld.sub
+++ b/lib/thread/bld.sub
@@ -49,7 +49,7 @@ lib thread =
lib ../std:std
;;
-lib testutil {noinst} =
+lib thrtestutil {noinst} =
util.myr
lib ../sys:sys
diff --git a/lib/thread/test/atomic.myr b/lib/thread/test/atomic.myr
index 4676543..aca9fd2 100644
--- a/lib/thread/test/atomic.myr
+++ b/lib/thread/test/atomic.myr
@@ -1,7 +1,7 @@
use std
use thread
-use testutil
+use thrtestutil
const Nherd = 20
@@ -11,7 +11,7 @@ var done : uint32 = 0
const main = {
done = 0
val = 0
- testutil.mkherd(Nherd, incvar)
+ thrtestutil.mkherd(Nherd, incvar)
while thread.xget(&done) != Nherd
/* nothing */
;;
diff --git a/lib/thread/test/mutex.myr b/lib/thread/test/mutex.myr
index f21ce91..eb15a5e 100644
--- a/lib/thread/test/mutex.myr
+++ b/lib/thread/test/mutex.myr
@@ -1,7 +1,7 @@
use std
use thread
-use testutil
+use thrtestutil
const Nherd = 20
@@ -14,7 +14,7 @@ const main = {
val = 0
mtx = thread.mkmtx()
- testutil.mkherd(Nherd, incvar)
+ thrtestutil.mkherd(Nherd, incvar)
while thread.xget(&done) != Nherd
/* nothing */
;;
diff --git a/lib/thread/util.myr b/lib/thread/util.myr
index a29d52d..15d8bbb 100644
--- a/lib/thread/util.myr
+++ b/lib/thread/util.myr
@@ -1,7 +1,7 @@
use std
use thread
-pkg testutil =
+pkg thrtestutil =
const mkherd : (n : uint32, fn : (-> void) ->void)
;;