[MOAB-dev] commit/MOAB: danwu: Minor change to examples/TestErrorHandling.cpp
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Jan 31 10:20:11 CST 2014
1 new commit in MOAB:
https://bitbucket.org/fathomteam/moab/commits/89841798c7c2/
Changeset: 89841798c7c2
Branch: error_handling_enhancement
User: danwu
Date: 2014-01-31 17:19:51
Summary: Minor change to examples/TestErrorHandling.cpp
Affected #: 1 file
diff --git a/examples/TestErrorHandling.cpp b/examples/TestErrorHandling.cpp
index ba97767..44f76d9 100644
--- a/examples/TestErrorHandling.cpp
+++ b/examples/TestErrorHandling.cpp
@@ -1,8 +1,8 @@
-/** @example TestErrorHandling.cpp
- * Description: Demonstrates enhanced error handling of MOAB.\n
- * This example creates contrived errors to test MOAB's trace back error handler.\n
+/** @example TestErrorHandling.cpp \n
+ * Description: Demonstrates enhanced error handling of MOAB. \n
+ * This example creates some contrived errors to test MOAB's trace back error handler. \n
*
- * To run: ./TestErrorHandling\n
+ * To run: ./TestErrorHandling \n
*/
#include "moab/Core.hpp"
@@ -20,7 +20,7 @@ ErrorInfo FunctionC(int n)
}
else if (2 == n) {
// Simulate MB_FILE_WRITE_ERROR
- SET_ERR1(MB_FILE_WRITE_ERROR, "FunctionC created a contrived error MB_ENTITY_MB_FILE_WRITE_ERROR");
+ SET_ERR1(MB_FILE_WRITE_ERROR, "FunctionC created a contrived error MB_FILE_WRITE_ERROR");
}
else if (3 == n) {
// Simulate MB_NOT_IMPLEMENTED
@@ -47,7 +47,7 @@ ErrorInfo FunctionA(int n)
}
// In this test case, no error occurs in the call hierarchy
-ErrorInfo Test_1()
+ErrorInfo TestErrorHandling_1()
{
ErrorInfo err_code = FunctionA(1);CHK_ERR(err_code);
@@ -55,7 +55,7 @@ ErrorInfo Test_1()
}
// In this test case, MB_FILE_WRITE_ERROR is returned by FunctionC
-ErrorInfo Test_2()
+ErrorInfo TestErrorHandling_2()
{
ErrorInfo err_code = FunctionA(2);CHK_ERR(err_code);
@@ -64,7 +64,7 @@ ErrorInfo Test_2()
// In this test case, MB_NOT_IMPLEMENTED is returned by FunctionC
// The error message is built with C++ streaming
-ErrorInfo Test_3()
+ErrorInfo TestErrorHandling_3()
{
ErrorInfo err_code = FunctionA(3);CHK_ERR(err_code);
@@ -76,15 +76,15 @@ int main()
MBErrorHandler_Init();
cout << "--------------------Running test case 1 start--------------------" << endl;
- Test_1();
+ TestErrorHandling_1();
cout << "--------------------Running test case 1 end----------------------\n" << endl;
cout << "--------------------Running test case 2 start--------------------" << endl;
- Test_2();
+ TestErrorHandling_2();
cout << "--------------------Running test case 2 end----------------------\n" << endl;
cout << "--------------------Running test case 3 start--------------------" << endl;
- Test_3();
+ TestErrorHandling_3();
cout << "--------------------Running test case 3 end----------------------\n" << endl;
MBErrorHandler_Finalize();
Repository URL: https://bitbucket.org/fathomteam/moab/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the moab-dev
mailing list