newlib: fix qa_exit_translator in qa tests
This commit is contained in:
parent
8c33c921b4
commit
be7c067507
|
@ -22,15 +22,19 @@
|
||||||
static char*
|
static char*
|
||||||
qa_exit_translator(int status)
|
qa_exit_translator(int status)
|
||||||
{
|
{
|
||||||
if(status == 0){
|
|
||||||
if(jehanne_getpid() == jehanne_getmainpid()){
|
if(jehanne_getpid() == jehanne_getmainpid()){
|
||||||
|
/* the QA test may fork, but only the main process
|
||||||
|
* should return PASS/FAIL
|
||||||
|
*/
|
||||||
|
if(status == 0){
|
||||||
jehanne_print("PASS\n");
|
jehanne_print("PASS\n");
|
||||||
return "PASS";
|
return "PASS";
|
||||||
}
|
} else {
|
||||||
return nil;
|
|
||||||
}
|
|
||||||
jehanne_print("FAIL: " __POSIX_EXIT_PREFIX "%d\n", status);
|
jehanne_print("FAIL: " __POSIX_EXIT_PREFIX "%d\n", status);
|
||||||
return "FAIL";
|
return "FAIL";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue