Tests now point to the correct locations

This commit is contained in:
François Autin 2023-04-05 17:07:58 +02:00
parent 968137cc1b
commit 2f0b9e6592
No known key found for this signature in database
GPG Key ID: 343F5D382E1DD77C
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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();