()
| 184 | } |
| 185 | |
| 186 | fn main() { |
| 187 | let mut args = env::args(); |
| 188 | let prog = args.next().unwrap(); |
| 189 | let arg = if let Some(arg) = args.next() { |
| 190 | arg |
| 191 | } else { |
| 192 | eprintln!("usage: {prog} <scratch directory>"); |
| 193 | process::exit(1); |
| 194 | }; |
| 195 | |
| 196 | // Open scratch directory |
| 197 | let dir_fd = match open_scratch_directory(&arg) { |
| 198 | Ok(dir_fd) => dir_fd, |
| 199 | Err(err) => { |
| 200 | eprintln!("{err}"); |
| 201 | process::exit(1) |
| 202 | } |
| 203 | }; |
| 204 | |
| 205 | // Run the tests. |
| 206 | unsafe { test_path_link(dir_fd) } |
| 207 | } |
nothing calls this directly
no test coverage detected