Use 'exit' instead of 'abort' for non-MPI version of APP_ABORT.

The WILL_FAIL property in CTest does not work with program exits due
to exceptions.  With this change, expected test failures are handled
properly.


git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6749 e5b18d87-469d-4833-9cc0-8cdfa06e9491
This commit is contained in:
Mark Dewing 2016-02-05 17:12:27 +00:00
parent 3d35ee4df6
commit 73abbe5462
1 changed files with 2 additions and 2 deletions

View File

@ -48,11 +48,11 @@ struct CommunicatorTraits
};
#define APP_ABORT(msg) \
{std::cerr << "Fatal Error. Aborting at " << msg << std::endl; std::cerr.flush(); abort();}
{std::cerr << "Fatal Error. Aborting at " << msg << std::endl; std::cerr.flush(); exit(1);}
#define APP_ABORT_TRACE(f,l,msg) \
{std::cerr << "Fatal Error. Aborting at " << l \
<< "::" << f << "\n " << msg << endl; abort();}
<< "::" << f << "\n " << msg << endl; exit(1);}
#endif