mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-08 14:45:12 +00:00
testing/ostest: Report "ERROR" the same way for all the test cases.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
parent
f902d900e1
commit
0e9f08e454
4 changed files with 6 additions and 6 deletions
|
|
@ -155,7 +155,7 @@ void barrier_test(void)
|
|||
(pthread_addr_t)((uintptr_t)i));
|
||||
if (status != 0)
|
||||
{
|
||||
printf("barrier_test: Error in thread %d create, status=%d\n",
|
||||
printf("barrier_test: ERROR thread %d create, status=%d\n",
|
||||
i, status);
|
||||
printf("barrier_test: Test aborted with waiting threads\n");
|
||||
goto abort_test;
|
||||
|
|
@ -174,7 +174,7 @@ void barrier_test(void)
|
|||
status = pthread_join(barrier_thread[i], &result);
|
||||
if (status != 0)
|
||||
{
|
||||
printf("barrier_test: Error in thread %d join, status=%d\n",
|
||||
printf("barrier_test: ERROR thread %d join, status=%d\n",
|
||||
i, status);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ void mutex_test(void)
|
|||
#endif
|
||||
if (status != 0)
|
||||
{
|
||||
printf("Error in thread#1 creation\n");
|
||||
printf("ERROR in thread#1 creation\n");
|
||||
}
|
||||
|
||||
printf("Starting thread 2\n");
|
||||
|
|
@ -148,7 +148,7 @@ void mutex_test(void)
|
|||
#endif
|
||||
if (status != 0)
|
||||
{
|
||||
printf("Error in thread#2 creation\n");
|
||||
printf("ERROR in thread#2 creation\n");
|
||||
}
|
||||
|
||||
#ifdef SDCC
|
||||
|
|
|
|||
|
|
@ -225,7 +225,7 @@ static int user_main(int argc, char *argv[])
|
|||
|
||||
if (argc != NARGS + 1)
|
||||
{
|
||||
printf("user_main: Error expected argc=%d got argc=%d\n",
|
||||
printf("user_main: ERROR expected argc=%d got argc=%d\n",
|
||||
NARGS + 1, argc);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ void timedmutex_test(void)
|
|||
#endif
|
||||
if (status != 0)
|
||||
{
|
||||
fprintf(stderr, "mutex_test: Error in thread creation: %d\n", status);
|
||||
fprintf(stderr, "mutex_test: ERROR in thread creation: %d\n", status);
|
||||
goto errout_with_lock;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue