Skip to content

Commit

Permalink
Add dev_null integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Apr 5, 2024
1 parent fb8b007 commit 114ed27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/cases/dev_null.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
use std::process::{exit, Command, ExitStatus, Stdio};

fn main() {
let status: ExitStatus = Command::new("echo").stdout(Stdio::null()).status().unwrap();
let code = status.code().unwrap();
exit(code);
}
Empty file added tests/cases/dev_null.stderr
Empty file.

0 comments on commit 114ed27

Please sign in to comment.