Revision 1182 branches/threaded2merge/tests/threads/msimple/tests_msimple.cpp

tests_msimple.cpp (revision 1182)
12 12
    throw i;
13 13
  }
14 14
}
15

  
15
TEST_F(tests_msimple, msimple_main_cleanups)
16
{
17
  int argc = 1;
18
  char* argv[] = {"msimple"};
19
  msimple_main(argc, argv);
20
  ad_set_new_handler();
21
  ad_exit=&test_ad_boundf;
22
  gradient_structure::set_NO_DERIVATIVES();
23
  gradient_structure::set_YES_SAVE_VARIABLES_VALUES();
24
  if (!arrmblsize) arrmblsize=15000000;
25
  try
26
  {
27
    initial_params::varsptr.reinitialize();
28
    model_parameters mp(arrmblsize,argc,argv);
29
    //mp.iprint=10;
30
    //mp.preliminary_calculations();
31
    //mp.computations(argc,argv);
32
    initial_params::nvarcalc();
33
  } 
34
  catch (int i)
35
  {
36
    FAIL();
37
  }
38
}
16 39
TEST_F(tests_msimple, msimple_main)
17 40
{
18 41
  int argc = 1;
19 42
  char* argv[] = {"msimple"};
43
  initial_params::varsptr.reinitialize();
20 44
  msimple_main(argc, argv);
21 45
}
22 46
TEST_F(tests_msimple, msimple_main_test_for_cleanups_files)
23 47
{
24 48
  int argc = 1;
25 49
  char* argv[] = {"msimple"};
50
  initial_params::varsptr.reinitialize();
26 51
  msimple_main(argc, argv);
52
  initial_params::varsptr.reinitialize();
27 53
  msimple_main(argc, argv);
28 54
}
29 55
TEST_F(tests_msimple, msimple_main_contents)
......
38 64
  if (!arrmblsize) arrmblsize=15000000;
39 65
  try
40 66
  {
67
    initial_params::varsptr.reinitialize();
41 68
    model_parameters mp(arrmblsize,argc,argv);
42 69
    mp.iprint=10;
43 70
    mp.preliminary_calculations();
......
59 86
  if (!arrmblsize) arrmblsize=15000000;
60 87
  try
61 88
  {
89
    initial_params::varsptr.reinitialize();
62 90
    model_parameters mp(arrmblsize,argc,argv);
63 91
  } 
64 92
  catch (int i)

Also available in: Unified diff