diff --git a/include/test_ipc.h b/include/test_ipc.h new file mode 100644 index 0000000..0595ce8 --- /dev/null +++ b/include/test_ipc.h @@ -0,0 +1,8 @@ +#ifndef __TEST_IPC_H +#define __TEST_IPC_H + +#include + +void do_test_ipc(void); + +#endif /* __TEST_IPC_H */ \ No newline at end of file diff --git a/lib/grading/Hakefile b/lib/grading/Hakefile index 397a377..f605679 100644 --- a/lib/grading/Hakefile +++ b/lib/grading/Hakefile @@ -19,7 +19,8 @@ "test_helper.c", "test_mm.c", "test_paging.c", - "test_spawn.c" + "test_spawn.c", + "test_ipc.c" ], addLibraries = [ ] diff --git a/lib/grading/grading.c b/lib/grading/grading.c index 67e508e..421e672 100644 --- a/lib/grading/grading.c +++ b/lib/grading/grading.c @@ -12,6 +12,7 @@ #include #include #include +#include void grading_setup_bsp_init(int argc, char **argv) { @@ -36,6 +37,7 @@ grading_test_mm(struct mm *test) { void grading_test_early(void) { do_test_spawn(); + do_test_ipc(); } void diff --git a/lib/grading/test_ipc.c b/lib/grading/test_ipc.c new file mode 100644 index 0000000..a72a38b --- /dev/null +++ b/lib/grading/test_ipc.c @@ -0,0 +1,11 @@ +#include +#include +#include + +void do_test_ipc(void) { + struct spawninfo si; + domainid_t pid; + + CHECK_ERR(spawn_load_by_name("memeater", &si, &pid)); +} +