(tmp_dir: &TempDir, file_name: &str)
| 60 | } |
| 61 | |
| 62 | fn create_fifo_file(tmp_dir: &TempDir, file_name: &str) -> Result<PathBuf> { |
| 63 | let file_path = tmp_dir.path().join(file_name); |
| 64 | // Simulate an infinite environment via a FIFO file |
| 65 | if let Err(e) = unistd::mkfifo(&file_path, stat::Mode::S_IRWXU) { |
| 66 | exec_err!("{}", e) |
| 67 | } else { |
| 68 | Ok(file_path) |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | async fn write_to_fifo( |
| 73 | file: &mut tokio::fs::File, |
no test coverage detected
searching dependent graphs…