Return 1 if the VerifyDiagnosticConsumer finds errors (eg. something seen but not
expected or expected but not seen). Note this is going to break some of the tests, because there are some issues with the way cling uses the VerifyDiagnosticClient. git-svn-id: http://root.cern.ch/svn/root/trunk@46832 27541ba8-7e3a-0410-8455-c3a389f83636
This commit is contained in:
parent
516844befe
commit
e979b92b16
@ -60,5 +60,10 @@ int main( int argc, char **argv ) {
|
||||
ui.runInteractively(interp.getOptions().NoLogo);
|
||||
}
|
||||
|
||||
// if we are running with -verify a reported has to be returned as unsuccess.
|
||||
// This is relevan especially for the test suite.
|
||||
if (CI->getDiagnosticOpts().VerifyDiagnostics)
|
||||
ret = !CI->getDiagnostics().getClient()->getNumErrors();
|
||||
|
||||
return ret ? 0 : 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user