newlib: fix qa_exit_translator in qa tests
This commit is contained in:
parent
8c33c921b4
commit
be7c067507
|
@ -22,16 +22,20 @@
|
|||
static char*
|
||||
qa_exit_translator(int status)
|
||||
{
|
||||
if(status == 0){
|
||||
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");
|
||||
return "PASS";
|
||||
}
|
||||
return nil;
|
||||
}
|
||||
} else {
|
||||
jehanne_print("FAIL: " __POSIX_EXIT_PREFIX "%d\n", status);
|
||||
return "FAIL";
|
||||
}
|
||||
}
|
||||
return nil;
|
||||
}
|
||||
|
||||
void
|
||||
__application_newlib_init(void)
|
||||
|
|
Loading…
Reference in New Issue