mirror of https://github.com/QMCPACK/qmcpack.git
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:
parent
3d35ee4df6
commit
73abbe5462
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue