STM32F3Discovery passes all OS tests; Delay loop has been calibrated
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5629 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
2ad5349d4c
commit
b8c07cfa53
@ -110,9 +110,24 @@ static void waitpid_last(void)
|
||||
if (ret < 0)
|
||||
{
|
||||
int errcode = errno;
|
||||
|
||||
/* Unfortunately, this main thread does not retain child status. If
|
||||
* child status is enabled (via CONFIG_SCHED_CHILD_STATUS), ostest_main()
|
||||
* disables the feature by calling sigactin with SA_NOCLDWAIT.
|
||||
*/
|
||||
|
||||
if (errcode == ECHILD)
|
||||
{
|
||||
printf("waitpid_last: PASS: PID %d waitpid failed with ECHILD. That may be\n",
|
||||
g_waitpids[NCHILDREN-1]);
|
||||
printf(" acceptable because child status is disabled on this thread.\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("waitpid_last: ERROR: PID %d waitpid failed: %d\n",
|
||||
g_waitpids[NCHILDREN-1], errcode);
|
||||
}
|
||||
}
|
||||
else if (WEXITSTATUS(stat_loc) != RETURN_STATUS)
|
||||
{
|
||||
printf("waitpid_last: ERROR: PID %d return status is %d, expected %d\n",
|
||||
@ -120,7 +135,7 @@ static void waitpid_last(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("waitpid_last: PID %d waitpid succeeded with stat_loc=%04x\n",
|
||||
printf("waitpid_last: PASS: PID %d waitpid succeeded with stat_loc=%04x\n",
|
||||
g_waitpids[NCHILDREN-1], stat_loc);
|
||||
}
|
||||
}
|
||||
@ -147,9 +162,24 @@ int waitpid_test(void)
|
||||
if (ret < 0)
|
||||
{
|
||||
int errcode = errno;
|
||||
|
||||
/* Unfortunately, this main thread does not retain child status. If
|
||||
* child status is enabled (via CONFIG_SCHED_CHILD_STATUS), ostest_main()
|
||||
* disables the feature by calling sigactin with SA_NOCLDWAIT.
|
||||
*/
|
||||
|
||||
if (errcode == ECHILD)
|
||||
{
|
||||
printf("waitpid_test: PASS: PID %d waitpid failed with ECHILD. That may be\n",
|
||||
g_waitpids[NCHILDREN-1]);
|
||||
printf(" acceptable because child status is disabled on this thread.\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("waitpid_test: ERROR: PID %d waitpid failed: %d\n",
|
||||
g_waitpids[0], errcode);
|
||||
}
|
||||
}
|
||||
else if (ret != g_waitpids[0])
|
||||
{
|
||||
printf("waitpid_test: ERROR: PID %d wait returned PID %d\n",
|
||||
@ -182,9 +212,24 @@ int waitpid_test(void)
|
||||
if (ret < 0)
|
||||
{
|
||||
int errcode = errno;
|
||||
|
||||
/* Unfortunately, this main thread does not retain child status. If
|
||||
* child status is enabled (via CONFIG_SCHED_CHILD_STATUS), ostest_main()
|
||||
* disables the feature by calling sigactin with SA_NOCLDWAIT.
|
||||
*/
|
||||
|
||||
if (errcode == ECHILD)
|
||||
{
|
||||
printf("waitpid_test: PASS: PID %d waitpid failed with ECHILD. That may be\n",
|
||||
g_waitpids[NCHILDREN-1]);
|
||||
printf(" acceptable because child status is disabled on this thread.\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("waitpid_test: ERROR: PID %d waitid failed: %d\n",
|
||||
g_waitpids[0], errcode);
|
||||
}
|
||||
}
|
||||
else if (info.si_pid != g_waitpids[0])
|
||||
{
|
||||
printf("waitpid_test: ERROR: PID %d waitid returned PID %d\n",
|
||||
@ -216,8 +261,23 @@ int waitpid_test(void)
|
||||
if (ret < 0)
|
||||
{
|
||||
int errcode = errno;
|
||||
|
||||
/* Unfortunately, this main thread does not retain child status. If
|
||||
* child status is enabled (via CONFIG_SCHED_CHILD_STATUS), ostest_main()
|
||||
* disables the feature by calling sigactin with SA_NOCLDWAIT.
|
||||
*/
|
||||
|
||||
if (errcode == ECHILD)
|
||||
{
|
||||
printf("waitpid_test: PASS: PID %d waitpid failed with ECHILD. That may be\n",
|
||||
g_waitpids[NCHILDREN-1]);
|
||||
printf(" acceptable because child status is disabled on this thread.\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("waitpid_test: ERROR: waitid failed: %d\n", errcode);
|
||||
}
|
||||
}
|
||||
else if (info.si_status != RETURN_STATUS)
|
||||
{
|
||||
printf("waitpid_test: ERROR: PID %d return status is %d, expected %d\n",
|
||||
@ -244,8 +304,23 @@ int waitpid_test(void)
|
||||
if (ret < 0)
|
||||
{
|
||||
int errcode = errno;
|
||||
|
||||
/* Unfortunately, this main thread does not retain child status. If
|
||||
* child status is enabled (via CONFIG_SCHED_CHILD_STATUS), ostest_main()
|
||||
* disables the feature by calling sigactin with SA_NOCLDWAIT.
|
||||
*/
|
||||
|
||||
if (errcode == ECHILD)
|
||||
{
|
||||
printf("waitpid_test: PASS: PID %d waitpid failed with ECHILD. That may be\n",
|
||||
g_waitpids[NCHILDREN-1]);
|
||||
printf(" acceptable because child status is disabled on this thread.\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("waitpid_test: ERROR: wait failed: %d\n", errcode);
|
||||
}
|
||||
}
|
||||
else if (WEXITSTATUS(stat_loc) != RETURN_STATUS)
|
||||
{
|
||||
printf("waitpid_test: ERROR: PID %d return status is %d, expected %d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user