shithub: mc

Download patch

ref: 4665f57c5a86ade9ef524b3d7380f6fcd1abb0ff
parent: 5d521c36533ee6f834b9dcad90e23feb5f90a680
author: Ori Bernstein <ori@markovcorp.com>
date: Tue Aug 1 08:04:22 EDT 2017

HACK: Work around bug in mbld.

	It picks up the wrong test util library right now.

--- a/lib/thread/bld.sub
+++ b/lib/thread/bld.sub
@@ -49,7 +49,7 @@
         lib ../std:std
 ;;
 
-lib testutil {noinst} =
+lib thrtestutil {noinst} =
 	util.myr
 
         lib ../sys:sys
--- 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 @@
 const main = {
 	done = 0
 	val = 0
-	testutil.mkherd(Nherd, incvar)
+	thrtestutil.mkherd(Nherd, incvar)
 	while thread.xget(&done) != Nherd
 		/* nothing */
 	;;
--- 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 @@
 	val = 0
 
 	mtx = thread.mkmtx()
-	testutil.mkherd(Nherd, incvar)
+	thrtestutil.mkherd(Nherd, incvar)
 	while thread.xget(&done) != Nherd
 		/* nothing */
 	;;
--- 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)
 ;;