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

Function test_setresuid

tests/thread/id.rs:18–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16#[cfg(feature = "process")]
17#[test]
18fn test_setresuid() {
19 let uid = process::getuid();
20 thread::set_thread_res_uid(uid, uid, uid).unwrap();
21}
22
23#[cfg(feature = "process")]
24#[test]

Callers

nothing calls this directly

Calls 2

set_thread_res_uidFunction · 0.85
getuidFunction · 0.50

Tested by

no test coverage detected