test-programs: no longer test virtfs separately

wasi-c2 does not have a virtfs yet, and when it does we'll design a
better test harness

also fix prestat get: i was reporting the wrong error
This commit is contained in:
Pat Hickey
2020-12-11 15:50:35 -08:00
parent 61f97a3e92
commit dfcdbfd0fe
3 changed files with 8 additions and 99 deletions

View File

@@ -395,7 +395,7 @@ impl<'a> wasi_snapshot_preview1::WasiSnapshotPreview1 for WasiCtx {
fn fd_prestat_get(&self, fd: types::Fd) -> Result<types::Prestat, Error> {
let table = self.table();
let dir_entry: RefMut<DirEntry> = table.get(u32::from(fd)).map_err(|_| Error::Notdir)?;
let dir_entry: RefMut<DirEntry> = table.get(u32::from(fd)).map_err(|_| Error::Badf)?;
if let Some(ref preopen) = dir_entry.preopen_path {
let path_str = preopen.to_str().ok_or(Error::Notsup)?;
let pr_name_len =