summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/sessions.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/sessions.rs b/tests/sessions.rs
index df2f3b2..748b689 100644
--- a/tests/sessions.rs
+++ b/tests/sessions.rs
@@ -67,6 +67,9 @@ fn sessions_create_list_and_replay() {
67 67
68#[test] 68#[test]
69fn cli_lists_sessions_without_a_key() { 69fn cli_lists_sessions_without_a_key() {
70 // Spawning holds a copy of the process's file descriptions between fork and
71 // exec, which would keep a session lock alive while another test drops it.
72 let _env = ENV_LOCK.lock().unwrap_or_else(|e| e.into_inner());
70 let dir = temp_dir("cli"); 73 let dir = temp_dir("cli");
71 let output = Command::new(env!("CARGO_BIN_EXE_agent686")) 74 let output = Command::new(env!("CARGO_BIN_EXE_agent686"))
72 .env("AGENT686_DATA", &dir) 75 .env("AGENT686_DATA", &dir)