Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/rustix
/ test_setuid
Function
test_setuid
tests/thread/id.rs:12–14 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
10
#[cfg(feature =
"process"
)]
11
#[test]
12
fn test_setuid() {
13
thread::set_thread_uid(process::getuid()).unwrap();
14
}
15
16
#[cfg(feature =
"process"
)]
17
#[test]
Callers
nothing calls this directly
Calls
2
set_thread_uid
Function · 0.85
getuid
Function · 0.50
Tested by
no test coverage detected