view tests/ordinary.rs @ 26:0feab4f4c2ce

Relax version requirements and update MSRV The MSRV was accidentally increased without documentation. Increase itself is fine since it satisfies "latest stable Debian" condition but given there are soundness issues this relaxes the version requirements to work on 1.48 and also documents it.
author Martin Habovstiak <martin.habovstiak@gmail.com>
date Fri, 28 Feb 2025 23:10:11 +0100
parents 66c0e10c89fc
children cfef4593e207
line wrap: on
line source

use std::io;
use std::ffi::OsStr;
use std::process::{Command, Child};

mod comm;

enum Test {}

impl comm::Test for Test {
    const SOCKET_ADDR: &'static str = "localhost:4242";

    fn spawn_slave(program_name: &OsStr) -> io::Result<Child> {
        Command::new(program_name)
            .env("SYSTEMD_SOCKET_INTEGRATION_TEST", "slave")
            .spawn()
    }
}

#[test]
fn main() {
    comm::main::<Test>();
}