Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

fix: test_dev_null_write() was not using echo as intended (#923)

Michael Bolin5bf944535196
diff --git a/codex-rs/core/src/landlock.rs b/codex-rs/core/src/landlock.rs
index 9a1d28499a..bc5713b29d 100644
--- a/codex-rs/core/src/landlock.rs
+++ b/codex-rs/core/src/landlock.rs
@@ -194,7 +194,7 @@ mod tests {
#[tokio::test]
async fn test_dev_null_write() {
- run_cmd(&["echo", "blah", ">", "/dev/null"], &[], 200).await;
+ run_cmd(&["bash", "-lc", "echo blah > /dev/null"], &[], 200).await;
}
#[tokio::test]