[MOAB-dev] r5142 - MOAB/trunk/test/h5file
tautges at mcs.anl.gov
tautges at mcs.anl.gov
Tue Aug 30 16:44:50 CDT 2011
Author: tautges
Date: 2011-08-30 16:44:50 -0500 (Tue, 30 Aug 2011)
New Revision: 5142
Modified:
MOAB/trunk/test/h5file/h5portable.cpp
Log:
Fixing another test.
Modified: MOAB/trunk/test/h5file/h5portable.cpp
===================================================================
--- MOAB/trunk/test/h5file/h5portable.cpp 2011-08-30 21:30:00 UTC (rev 5141)
+++ MOAB/trunk/test/h5file/h5portable.cpp 2011-08-30 21:44:50 UTC (rev 5142)
@@ -630,9 +630,18 @@
int main( int argc, char* argv[] )
{
+#ifdef USE_MPI
+ int fail = MPI_Init(&argc, &argv);
+ if (fail) return fail;
+#endif
REGISTER_TEST( test_native_read );
REGISTER_TEST_SET( x86_64 );
REGISTER_TEST_SET( x86_32 );
REGISTER_TEST_SET( power_32 );
- return RUN_TESTS( argc, argv );
+ int result = RUN_TESTS( argc, argv );
+#ifdef USE_MPI
+ fail = MPI_Finalize();
+ if (fail) return fail;
+#endif
+ return result;
}
More information about the moab-dev
mailing list