Tests now point to the correct locations
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user