Commit 0a912e5f authored by Charles Jacobsen's avatar Charles Jacobsen
Browse files

lcd: Kernel tests, add call to fipc init and fini.

parent a244b47e
......@@ -21,6 +21,14 @@ static int setup_and_run_test(void)
int ret;
struct fipc_ring_channel *caller_header, *callee_header;
struct task_struct *caller_thread, *callee_thread;
/*
* Initialize fipc
*/
ret = fipc_init();
if (ret) {
pr_err("Error init'ing libfipc, ret = %d\n", ret);
goto fail0;
}
/*
* Set up channel
*/
......@@ -66,6 +74,8 @@ static int setup_and_run_test(void)
*/
test_fipc_free_channel(CHANNEL_ORDER, caller_header, callee_header);
fipc_fini();
return 0;
fail3:
......@@ -73,6 +83,8 @@ fail3:
fail2:
test_fipc_free_channel(CHANNEL_ORDER, caller_header, callee_header);
fail1:
fipc_fini();
fail0:
return ret;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment