Implement more test arch features

This commit is contained in:
Jeremy Soller 2016-11-14 11:04:31 -07:00
parent 7e71c85c80
commit 3c0abadfd0
7 changed files with 75 additions and 23 deletions

View file

@ -8,6 +8,13 @@ use syscall::error::*;
use syscall::flag::{MODE_DIR, MODE_FILE, SEEK_SET, SEEK_CUR, SEEK_END};
use syscall::scheme::Scheme;
#[cfg(test)]
mod gen {
use collections::BTreeMap;
pub fn gen() -> BTreeMap<&'static [u8], (&'static [u8], bool)> { BTreeMap::new() }
}
#[cfg(not(test))]
#[path="../../build/userspace/initfs.rs"]
mod gen;