summaryrefslogtreecommitdiff
path: root/test/test.rs
diff options
context:
space:
mode:
authorJamie Hewland <jhewland@gmail.com>2017-09-09 21:18:44 +0200
committerJamie Hewland <jhewland@gmail.com>2017-11-12 10:56:58 +0200
commita7ebd89b428930c492d7cd2905cc0741c108a4ed (patch)
tree6519332414e9fb31f5d44337e48b739f50d7e2e4 /test/test.rs
parente36d4afc34e0c97b99ac7f1cbb4a3aeaf14e0ab4 (diff)
downloadnix-a7ebd89b428930c492d7cd2905cc0741c108a4ed.zip
groups tests: Add groups mutex and print message when tests skipped
Fix groups mutex name
Diffstat (limited to 'test/test.rs')
-rw-r--r--test/test.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test.rs b/test/test.rs
index 1b73c4ff..f4942d3d 100644
--- a/test/test.rs
+++ b/test/test.rs
@@ -43,6 +43,9 @@ lazy_static! {
/// Any test that changes the process's current working directory must grab
/// this mutex
pub static ref CWD_MTX: Mutex<()> = Mutex::new(());
+ /// Any test that changes the process's supplementary groups must grab this
+ /// mutex
+ pub static ref GROUPS_MTX: Mutex<()> = Mutex::new(());
/// Any test that creates child processes must grab this mutex, regardless
/// of what it does with those children.
pub static ref FORK_MTX: Mutex<()> = Mutex::new(());