Skip to content

Improve guest function cancellation tests #184

@danbugs

Description

@danbugs

The guest cancellation tests call a function spin in either the host (

let result = ctx.call("CallHostSpin", ReturnType::Void, None);
) or the guest (
let result = ctx.call("Spin", ReturnType::Void, None);
), this means that the tests are probably never trying to terminate execution in the host control loop (e.g., calling a host function or dealing with some other VM exit).

We should improve the tests so that:
(1) we run many tests with variable cancellation time, and
(2) the function that we call in the guest should loop calling a function in the host which sleeps for a random amount of time.

This should ensure that we are testing cancellation across all states.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/testingRelated to tests or testing infrastructurelifecycle/duplicateThis issue is a duplicate of another issue

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions