Skip to content

Commit

Permalink
Update new test to use ia2_test_runner.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrtonm committed Oct 22, 2024
1 parent 565626e commit 01beb78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions tests/static_addr_taken/lib.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <criterion/criterion.h>
#include <criterion/logging.h>
#include <ia2_test_runner.h>
#include <ia2.h>

#define IA2_COMPARTMENT 2
Expand All @@ -22,4 +21,4 @@ static fn_ptr_ty ptrs[3] IA2_SHARED_DATA = {

fn_ptr_ty *get_ptrs_in_lib(void) {
return ptrs;
}
}
5 changes: 2 additions & 3 deletions tests/static_addr_taken/main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <criterion/criterion.h>
#include <criterion/logging.h>
#include <ia2_test_runner.h>
#include <ia2.h>

INIT_RUNTIME(2);
Expand Down Expand Up @@ -40,4 +39,4 @@ Test(static_addr_taken, call_ptr_from_lib) {
for (int i = 0; i < 3; i++) {
lib_ptrs[i]();
}
}
}

0 comments on commit 01beb78

Please sign in to comment.