MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / sid_match

Function sid_match

tests/termios/sid.rs:24–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22#[cfg(all(feature = "stdio", feature = "process"))]
23#[test]
24fn sid_match() {
25 match tcgetsid(rustix::stdio::stdin()) {
26 Ok(sid) => assert_eq!(sid, rustix::process::getsid(None).unwrap()),
27 Err(_err) => {}
28 }
29}

Callers

nothing calls this directly

Calls 2

stdinFunction · 0.85
tcgetsidFunction · 0.50

Tested by

no test coverage detected