Skip to content

Commit

Permalink
samples: shared_mem: fix exception printouts
Browse files Browse the repository at this point in the history
Enable CONFIG_TEST so that we get the necessary defines for
console output when a fatal error happens, as well as assertion
checking.

Remove an unnecessary self-abort in main(), this causes an
assert to fail. Letting main() return does the same thing, more
gracefully.

Signed-off-by: Andrew Boie <[email protected]>
  • Loading branch information
Andrew Boie authored and nashif committed Jan 23, 2020
1 parent 2abfccb commit 8eecb37
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions samples/userspace/shared_mem/prj.conf
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
CONFIG_TEST=y
CONFIG_USERSPACE=y
2 changes: 0 additions & 2 deletions samples/userspace/shared_mem/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,6 @@ void main(void)
k_thread_start(&ct_thread);
k_sem_give(&allforone);
printk("CT thread started\n");
k_thread_abort(k_current_get());

}


Expand Down

0 comments on commit 8eecb37

Please sign in to comment.