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
@ -155,7 +155,7 @@ void barrier_test(void)
|
|||||||
(pthread_addr_t)((uintptr_t)i));
|
(pthread_addr_t)((uintptr_t)i));
|
||||||
if (status != 0)
|
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);
|
i, status);
|
||||||
printf("barrier_test: Test aborted with waiting threads\n");
|
printf("barrier_test: Test aborted with waiting threads\n");
|
||||||
goto abort_test;
|
goto abort_test;
|
||||||
@ -174,7 +174,7 @@ void barrier_test(void)
|
|||||||
status = pthread_join(barrier_thread[i], &result);
|
status = pthread_join(barrier_thread[i], &result);
|
||||||
if (status != 0)
|
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);
|
i, status);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -137,7 +137,7 @@ void mutex_test(void)
|
|||||||
#endif
|
#endif
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
printf("Error in thread#1 creation\n");
|
printf("ERROR in thread#1 creation\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Starting thread 2\n");
|
printf("Starting thread 2\n");
|
||||||
@ -148,7 +148,7 @@ void mutex_test(void)
|
|||||||
#endif
|
#endif
|
||||||
if (status != 0)
|
if (status != 0)
|
||||||
{
|
{
|
||||||
printf("Error in thread#2 creation\n");
|
printf("ERROR in thread#2 creation\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SDCC
|
#ifdef SDCC
|
||||||
|
@ -225,7 +225,7 @@ static int user_main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (argc != NARGS + 1)
|
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);
|
NARGS + 1, argc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ void timedmutex_test(void)
|
|||||||
#endif
|
#endif
|
||||||
if (status != 0)
|
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;
|
goto errout_with_lock;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user