test-fork 0.1.3

A library for running tests in separate processes.
Documentation
// Copyright (C) 2025 Daniel Mueller <deso@posteo.net>
// SPDX-License-Identifier: (Apache-2.0 OR MIT)

use test_fork_core::fork;
use test_fork_core::fork_id;


/// Check that we cannot mutably capture a variable in the function
/// running in the child.
fn env_mut_capture() {
    let mut x = 0;

    fork(fork_id!(), "env_mut_capture", || {
        x += 1;
    })
    .unwrap()
}

fn main() {}