summaryrefslogtreecommitdiffstats
path: root/tests/sessions.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/sessions.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/sessions.rs b/tests/sessions.rs
index 8d17fc5..b445242 100644
--- a/tests/sessions.rs
+++ b/tests/sessions.rs
@@ -35,6 +35,12 @@ fn sessions_create_list_and_replay() {
35 ) 35 )
36 .unwrap(); 36 .unwrap();
37 37
38 {
39 use std::os::unix::fs::PermissionsExt;
40 let mode = fs::metadata(alpha.path()).unwrap().permissions().mode() & 0o777;
41 assert_eq!(mode, 0o600, "sessions must not be group/world readable");
42 }
43
38 assert!(session::exists("alpha")); 44 assert!(session::exists("alpha"));
39 assert!(!session::exists("nope")); 45 assert!(!session::exists("nope"));
40 46