Tests now point to the correct locations
This commit is contained in:
parent
968137cc1b
commit
2f0b9e6592
@ -208,7 +208,7 @@ mod test {
|
||||
fn test_thread_context() {
|
||||
let mut machine = Machine::default();
|
||||
|
||||
let (loader, ptr) = loader::Loader::new("./test/syscall_tests/halt", &mut machine, 0).expect("IO Error");
|
||||
let (loader, ptr) = loader::Loader::new("./target/guac/halt.guac", &mut machine, 0).expect("IO Error");
|
||||
let start_pc = loader.elf_header.entrypoint;
|
||||
let system = &mut System::default();
|
||||
|
||||
|
@ -613,7 +613,7 @@ mod test {
|
||||
#[test]
|
||||
fn test_parse_elf() {
|
||||
let mut machine = Machine::default();
|
||||
let loader = Loader::load_and_parse("./test/riscv_instructions/simple_arithmetics/unsigned_addition").expect("IO Error");
|
||||
let loader = Loader::load_and_parse("./target/guac/unsigned_addition.guac").expect("IO Error");
|
||||
loader.load_into_machine(&mut machine, 0).expect("Parsing error");
|
||||
assert!(!loader.elf_header.is_32bits);
|
||||
assert!(!loader.elf_header.endianess);
|
||||
@ -634,7 +634,7 @@ mod test {
|
||||
#[test]
|
||||
fn test_parse_section() {
|
||||
let mut machine = Machine::default();
|
||||
let loader = Loader::load_and_parse("./test/riscv_instructions/simple_arithmetics/unsigned_addition").expect("IO Error");
|
||||
let loader = Loader::load_and_parse("./target/guac/unsigned_addition.guac").expect("IO Error");
|
||||
loader.load_into_machine(&mut machine, 0).expect("Parsing error");
|
||||
assert_eq!(9, loader.sections.len());
|
||||
let n = loader.sections.iter().filter(|p| { p.does_flag_contains_key(crate::simulator::loader::FlagValue::ShfAlloc)}).collect::<Vec<&SectionHeader>>().len();
|
||||
|
Loading…
Reference in New Issue
Block a user