Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actor assertions #117

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@
<arg value="2" />
</exec>
</target>

<target name="actor-assertion-tests" depends="compile">
<exec executable="tests/actor-assertions/test.sh" failonerror="true"></exec>
</target>

<target name="core-tests" depends="unit-tests,som-tests,dynamic-metrics-tests">
</target>
Expand All @@ -192,6 +196,6 @@
</java>
</target>

<target name="tests" depends="core-tests,replay-tests,coverage">
<target name="tests" depends="core-tests,replay-tests, actor-assertion-tests,coverage">
</target>
</project>
5 changes: 3 additions & 2 deletions core-lib/Actors.som
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*)
class Actors usingVmMirror: vmMirror usingKernel: kernel = Value (
class Actors usingVmMirror: vmMirror usingKernel: kernel usingPlatform: platform = Value (
| private vmMirror = vmMirror.
private Exception = kernel Exception.
private Vector = kernel Vector.
private ObjectMirror = platform mirrors ObjectMirror.
|
(* the easiest way to get to this reference in the VM.
And, yes, looks dirty, but is rather ok. They are Values after all. *)
Expand Down Expand Up @@ -149,7 +150,7 @@ class Actors usingVmMirror: vmMirror usingKernel: kernel = Value (
public for: p = (
^ PromiseGroup for: p head: nil
)
)
)

public createPromisePair = (
^ vmMirror actorsCreatePromisePair: nil.
Expand Down
Loading