diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-28 13:02:36 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-28 13:02:36 -0600 |
commit | 8aed46c0d53be355372066ed2cb7eeb5993c65d7 (patch) | |
tree | 3ce834f96629b6f333a48f705f1ab2643645572d /apps/examples/ostest/ostest_main.c | |
parent | 4ea6d399799d8bb94cca45b26e2bc2d5784a1792 (diff) | |
download | px4-nuttx-8aed46c0d53be355372066ed2cb7eeb5993c65d7.tar.gz px4-nuttx-8aed46c0d53be355372066ed2cb7eeb5993c65d7.tar.bz2 px4-nuttx-8aed46c0d53be355372066ed2cb7eeb5993c65d7.zip |
Add a simple named semaphore test to the OS test
Diffstat (limited to 'apps/examples/ostest/ostest_main.c')
-rw-r--r-- | apps/examples/ostest/ostest_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/examples/ostest/ostest_main.c b/apps/examples/ostest/ostest_main.c index 0f538f5e9..4f2bf559d 100644 --- a/apps/examples/ostest/ostest_main.c +++ b/apps/examples/ostest/ostest_main.c @@ -382,6 +382,12 @@ static int user_main(int argc, char *argv[]) semtimed_test(); check_test_memory_usage(); +#ifdef CONFIG_FS_NAMED_SEMAPHORES + printf("\nuser_main: Named semaphore test\n"); + nsem_test(); + check_test_memory_usage(); + +#endif #endif #ifndef CONFIG_DISABLE_PTHREAD |