MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / proc_in_read_only_without_gpu

Function proc_in_read_only_without_gpu

crates/openshell-sandbox/src/lib.rs:1027–1037  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1025
1026 #[test]
1027 fn proc_in_read_only_without_gpu() {
1028 if has_gpu_devices() {
1029 // On a GPU host we can't test the non-GPU path; skip silently.
1030 return;
1031 }
1032 let (ro, _rw) = baseline_enrichment_paths();
1033 assert!(
1034 ro.contains(&"/proc".to_string()),
1035 "/proc should be in read_only when GPU is not present"
1036 );
1037 }
1038
1039 #[test]
1040 fn baseline_read_write_always_includes_sandbox_and_tmp() {

Callers

nothing calls this directly

Calls 2

has_gpu_devicesFunction · 0.85

Tested by

no test coverage detected