Skip to content
Snippets Groups Projects
Commit 703ad412 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Work around CI config weirdness.

Some of our builders put root into gid 0, but getgroups() doesn't
actually give any result.
parent 85d7084d
No related branches found
No related tags found
No related merge requests found
......@@ -94,6 +94,11 @@ mod test {
fn groups() {
let groups = cur_groups();
let cur_gid = users::get_current_gid();
if groups.is_empty() {
// Some container/VM setups forget to put the (root) user into any
// groups at all.
return;
}
assert!(groups.contains(&cur_gid));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment