Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tsiguenz committed Oct 4, 2023
1 parent 6b32523 commit e118df5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/check_format_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@ char *check_format_tests(void) {
{
char *filename = "test/bin/ok_files/print42_x64";
test_helper(filename, &fd, &file_size, &map);
mu_assert(__FILE__ ": normal elf", !check_format(map, filename));
mu_assert(__FILE__ ": normal elf", !check_format(map, filename, file_size));
}
{
char *filename = "test/bin/bad_files/elf_changed_to_ela";
test_helper(filename, &fd, &file_size, &map);
mu_assert(__FILE__ ": bad magic numbers (?ELF) elf",
check_format(map, filename));
check_format(map, filename, file_size));
}
{
char *filename = "test/bin/bad_files/42";
test_helper(filename, &fd, &file_size, &map);
mu_assert(__FILE__ ": file with 2 chars", check_format(map, filename));
mu_assert(__FILE__ ": file with 2 chars",
check_format(map, filename, file_size));
}
return 0;
}

0 comments on commit e118df5

Please sign in to comment.