summaryrefslogtreecommitdiff
path: root/apps/examples/ostest/ostest_main.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-08 22:53:14 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-08 22:53:14 +0000
commit3219f837f162088ad89b2102d1fcf71b293c14fc (patch)
treee683adb1fe0d36ce9fa9f6219951a8fa2cc369c8 /apps/examples/ostest/ostest_main.c
parent08650208d65dad8629ef44064f443dfbc2420f38 (diff)
downloadnuttx-3219f837f162088ad89b2102d1fcf71b293c14fc.tar.gz
nuttx-3219f837f162088ad89b2102d1fcf71b293c14fc.tar.bz2
nuttx-3219f837f162088ad89b2102d1fcf71b293c14fc.zip
Fix some problems with the vfork() test on the STM32F3Discovery
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5628 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/ostest/ostest_main.c')
-rw-r--r--apps/examples/ostest/ostest_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/examples/ostest/ostest_main.c b/apps/examples/ostest/ostest_main.c
index 978f72f9e..21f5e6077 100644
--- a/apps/examples/ostest/ostest_main.c
+++ b/apps/examples/ostest/ostest_main.c
@@ -451,7 +451,8 @@ static int user_main(int argc, char *argv[])
check_test_memory_usage();
#endif /* CONFIG_PRIORITY_INHERITANCE && !CONFIG_DISABLE_SIGNALS && !CONFIG_DISABLE_PTHREAD */
-#ifdef CONFIG_ARCH_HAVE_VFORK
+#if defined(CONFIG_ARCH_HAVE_VFORK) && defined(CONFIG_SCHED_WAITPID) && \
+ !defined(CONFIG_DISABLE_SIGNALS)
printf("\nuser_main: vfork() test\n");
vfork_test();
#endif