summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-15 18:54:00 +0100
committersalmonik <salmonik@tuta.io>2026-11-15 18:55:21 +0100
commit53c85c99647ded9fab199c97b9383744e2524364 (patch)
tree0c4bad8cad75bd4d00e2eff5374c10a42a31210b /tests
parent0.7.1: drop argument-less tool calls, print each command once (diff)
downloadagent686-53c85c99647ded9fab199c97b9383744e2524364.tar.gz
agent686-53c85c99647ded9fab199c97b9383744e2524364.zip
0.8.0: comp.sh reports how to build for the machine it runs on
Detects distro, arch, libc/glibc, CPU baseline and toolchain, prints the target triple, build command, cfg values, and the portable paths (static musl, older glibc image, cargo-zigbuild). --run builds and checks; --musl and --old-glibc select the other plans. Verified: native gnu build needs GLIBC_2.34; static musl build runs on Debian 10 and reaches the live API.
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)