T8: sausage:process WIT (spawn, wait, kill), one store per process over the shared root, /proc/processes, /run, pipeline and cancellation groups, Exec. brush and 78 uutils commands; the shared cwd-init object sets the cwd from PWD and keeps numeric exit codes. The corpus matches native bash. T9: V8 (deno_core) runs pi-durable, pi-ai and chord; SQLite storage in <dir>/host/harness.sqlite (WAL, synchronous=FULL); file tools on the VFS, bash through Exec; resumes after SIGKILL.
10 lines
408 B
Rust
10 lines
408 B
Rust
//! Probe normal Rust filesystem APIs without any cwd startup code.
|
|
fn main() {
|
|
if let Some(code) = std::env::args().nth(1) {
|
|
std::process::exit(code.parse().unwrap());
|
|
}
|
|
println!("cwd={}", std::env::current_dir().unwrap().display());
|
|
println!("relative={}", std::fs::read_to_string("f").unwrap().trim());
|
|
println!("absolute={}", std::fs::read_to_string("/f").unwrap().trim());
|
|
}
|