diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-06-05 01:58:08 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-06-05 01:58:08 +0000 |
commit | 92c9dcbe893d620a6dc74b624edffd46c26316f3 (patch) | |
tree | 7558babe2223b7b7c2fb05d28ed4f13d2681a4d1 /nuttx/examples/ostest/main.c | |
parent | 1537061e4e8d2d77fd03e0efe6338c29756b4901 (diff) | |
download | px4-nuttx-92c9dcbe893d620a6dc74b624edffd46c26316f3.tar.gz px4-nuttx-92c9dcbe893d620a6dc74b624edffd46c26316f3.tar.bz2 px4-nuttx-92c9dcbe893d620a6dc74b624edffd46c26316f3.zip |
Add recursive mutex test
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@771 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/ostest/main.c')
-rw-r--r-- | nuttx/examples/ostest/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/examples/ostest/main.c b/nuttx/examples/ostest/main.c index 0f34eea23..bb12b49ce 100644 --- a/nuttx/examples/ostest/main.c +++ b/nuttx/examples/ostest/main.c @@ -313,6 +313,14 @@ static int user_main(int argc, char *argv[]) check_test_memory_usage(); #endif +#if !defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_MUTEX_TYPES) + /* Verify recursive mutexes */ + + printf("\nuser_main: recursive mutex test\n"); + recursive_mutex_test(); + check_test_memory_usage(); +#endif + #ifndef CONFIG_DISABLE_PTHREAD /* Verify pthread cancellation */ |