#include <Zoltan2_config.h>
#include <iostream>
#include <string>
#include <exception>
#include <Teuchos_RCP.hpp>
#include <Teuchos_Comm.hpp>
#include <Teuchos_CommHelpers.hpp>
Go to the source code of this file.
|
| #define | TEST_FAIL_AND_THROW(comm, ok, s) |
| |
| #define | TEST_FAIL_AND_EXIT(comm, ok, s, code) |
| |
| #define | TEST_FAIL_AND_RETURN(comm, ok, s) |
| |
| #define | TEST_FAIL_AND_RETURN_VALUE(comm, ok, s, rc) |
| |
|
| int | globalFail (const RCP< const Comm< int > > &comm, int fail) |
| |
| void | printFailureCode (const RCP< const Comm< int > > &comm, int fail) |
| |
| #define TEST_FAIL_AND_THROW |
( |
|
comm, |
|
|
|
ok, |
|
|
|
s |
|
) |
| |
| #define TEST_FAIL_AND_EXIT |
( |
|
comm, |
|
|
|
ok, |
|
|
|
s, |
|
|
|
code |
|
) |
| |
Value:if (!(ok)){ \
std::cerr << "Error: " << s << std::endl;\
std::cout << "Error: " << s << std::endl;\
std::cout << "FAIL" << std::endl;\
exit(code);\
}
Definition at line 118 of file ErrorHandlingForTests.hpp.
| #define TEST_FAIL_AND_RETURN |
( |
|
comm, |
|
|
|
ok, |
|
|
|
s |
|
) |
| |
Value:if (!(ok)){ \
std::cerr << "Error: " << s << std::endl;\
std::cout << "Error: " << s << std::endl;\
std::cout << "FAIL" << std::endl;\
return;\
}
Definition at line 126 of file ErrorHandlingForTests.hpp.
| #define TEST_FAIL_AND_RETURN_VALUE |
( |
|
comm, |
|
|
|
ok, |
|
|
|
s, |
|
|
|
rc |
|
) |
| |
Value:if (!(ok)){ \
std::cerr << "Error: " << s << std::endl;\
std::cout << "Error: " << s << std::endl;\
std::cout << "FAIL" << std::endl;\
return (rc);\
}
Definition at line 134 of file ErrorHandlingForTests.hpp.
| int globalFail |
( |
const RCP< const Comm< int > > & |
comm, |
|
|
int |
fail |
|
) |
| |
| void printFailureCode |
( |
const RCP< const Comm< int > > & |
comm, |
|
|
int |
fail |
|
) |
| |