/[escript]/trunk/escript/test/escript_UnitTest.cpp
ViewVC logotype

Diff of /trunk/escript/test/escript_UnitTest.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1137 by gross, Thu May 10 08:11:31 2007 UTC revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC
# Line 1  Line 1 
1    
2    /* $Id$ */
3    
4    /*******************************************************
5     *
6     *           Copyright 2003-2007 by ACceSS MNRF
7     *       Copyright 2007 by University of Queensland
8     *
9     *                http://esscc.uq.edu.au
10     *        Primary Business: Queensland, Australia
11     *  Licensed under the Open Software License version 3.0
12     *     http://www.opensource.org/licenses/osl-3.0.php
13     *
14     *******************************************************/
15    
16  #include <iostream>  #include <iostream>
17    
18  #include "DataEmptyTestCase.h"  #include "DataEmptyTestCase.h"
# Line 19  Line 34 
34    
35  using namespace CppUnitTest;  using namespace CppUnitTest;
36    
37    extern "C"{
38    #include "paso/Paso_MPI.h"
39    }
40    
41  int main(int argc, char* argv[])  int main(int argc, char* argv[])
42  {  {
43    #ifdef PASO_MPI
44            int status = MPI_Init(&argc, &argv);
45            if (status != MPI_SUCCESS) {
46              std::cerr << argv[0] << ": MPI_Init failed, exiting." << std::endl;
47              return status;
48            }
49    #endif
50      //      //
51      // object which runs all of the tests      // object which runs all of the tests
52      TestRunner runner;      TestRunner runner;
# Line 43  int main(int argc, char* argv[]) Line 69  int main(int argc, char* argv[])
69    
70      // actually run the unit tests.      // actually run the unit tests.
71      runner.run (argc, argv);      runner.run (argc, argv);
72    
73    #ifdef PASO_MPI
74            MPI_Finalize();
75    #endif
76    
77      return 0;      return 0;
78  }  }
79    

Legend:
Removed from v.1137  
changed lines
  Added in v.1312

  ViewVC Help
Powered by ViewVC 1.1.26