Provide correct exit value based on RunTests() success
parent
75c78de2b3
commit
d4ddfc18f5
|
@ -25,7 +25,9 @@ int main (int argc, char *argv[])
|
|||
{
|
||||
#ifdef RUN_SELF_TESTS
|
||||
ns3::TestManager::EnableVerbose ();
|
||||
ns3::TestManager::RunTests ();
|
||||
bool success = ns3::TestManager::RunTests ();
|
||||
if (!success)
|
||||
return 1;
|
||||
#endif /* RUN_SELF_TESTS */
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue