From 5bf94453519602d9369dc16cda59e3e0604662aa Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Tue, 13 May 2025 21:40:26 -0700 Subject: [PATCH] fix: test_dev_null_write() was not using echo as intended (#923) I believe this test meant to verify that echoing content to `/dev/null` succeeded, but instead, I believe it was testing the equivalent to `echo 'blah > /dev/null'`. --- codex-rs/core/src/landlock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/core/src/landlock.rs b/codex-rs/core/src/landlock.rs index 9a1d2849..bc5713b2 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]