Property

sandbox

Flag indicating if the sandbox should be used.

Since v1.0
struct TestOptions {
    bool sandbox;
}

Discussion 🔗

The sandbox isolates each test case iteration in a separate address space. This ensures if it unexpectedly terminates it will not bring down the test runner. The sandbox is also useful for testing expected terminations, signals, and to terminate the test if it exceeds a specified timeout.

TEST(yourSuite, yourTest, .sandbox=true) {
    // ...
}