Skip to content

Commit 2bba6f8

Browse files
committed
test
1 parent 8176ccf commit 2bba6f8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/memory_maps/main.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ INIT_RUNTIME(4);
88
#define IA2_COMPARTMENT 1
99
#include <ia2_compartment_init.inc>
1010

11+
void ia2_main(void) {
12+
ia2_register_compartment("main", 1, NULL);
13+
ia2_register_compartment("lib2.so", 2, NULL);
14+
ia2_register_compartment("lib3.so", 3, NULL);
15+
ia2_register_compartment("lib4.so", 4, NULL);
16+
}
17+
1118
Test(memory_maps, alloc) {
1219
// Alloc and free so that partition-alloc allocates its compartment heaps.
1320
free(malloc(1024));

0 commit comments

Comments
 (0)