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:
Abdelatif Guettouche 2021-04-29 23:41:05 +01:00 committed by Gustavo Henrique Nihei
parent f902d900e1
commit 0e9f08e454
4 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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);
}

View File

@ -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;
}