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

tests_msimple.cpp (revision 1202)
14 14
}
15 15
TEST_F(tests_msimple, msimple_main_cleanups)
16 16
{
17
  int argc = 1;
18
  char* argv[] = {"msimple"};
17
  int argc = 2;
18
  char* argv[] = {"msimple", "-nohess"};
19 19
  msimple_main(argc, argv);
20 20
  ad_set_new_handler();
21 21
  ad_exit=&test_ad_boundf;
......
38 38
}
39 39
TEST_F(tests_msimple, msimple_main)
40 40
{
41
  int argc = 1;
42
  char* argv[] = {"msimple"};
41
  int argc = 2;
42
  char* argv[] = {"msimple", "-nohess"};
43 43
  initial_params::varsptr.reinitialize();
44 44
  ASSERT_EQ(0, initial_params::varsptr[0]);
45 45
  ASSERT_EQ(0, initial_params::varsptr[1]);
......
48 48
}
49 49
TEST_F(tests_msimple, msimple_main_test_for_cleanups_files)
50 50
{
51
  int argc = 1;
52
  char* argv[] = {"msimple"};
51
  int argc = 2;
52
  char* argv[] = {"msimple", "-nohess"};
53 53
  initial_params::varsptr.reinitialize();
54 54
  msimple_main(argc, argv);
55 55
  initial_params::varsptr.reinitialize();
......
57 57
}
58 58
TEST_F(tests_msimple, msimple_main_contents)
59 59
{
60
  int argc = 1;
61
  char* argv[] = {"msimple"};
60
  int argc = 2;
61
  char* argv[] = {"msimple", "-nohess"};
62 62
  //msimple_main(argc, argv);
63 63
  ad_set_new_handler();
64 64
  ad_exit=&test_ad_boundf;
......
80 80
}
81 81
TEST_F(tests_msimple, msimple_main_model_parameters)
82 82
{
83
  int argc = 1;
84
  char* argv[] = {"msimple"};
83
  int argc = 2;
84
  char* argv[] = {"msimple", "-nohess"};
85 85
  ad_set_new_handler();
86 86
  ad_exit=&test_ad_boundf;
87 87
  gradient_structure::set_NO_DERIVATIVES();
......
130 130
TEST_F(tests_msimple, msimple_param_vector)
131 131
{
132 132
  gradient_structure gs(150000L);
133
  int argc = 1;
134
  char* argv[] = {"msimple"};
133
  int argc = 2;
134
  char* argv[] = {"msimple", "-nohess"};
135 135
  test_ad_comm ad(argc, argv);
136 136
  test_named_dvar_vector ff;
137 137
}
......
142 142
TEST_F(tests_msimple, msimple_param_vector_allocate)
143 143
{
144 144
  gradient_structure gs(150000L);
145
  int argc = 1;
146
  char* argv[] = {"msimple"};
145
  int argc = 2;
146
  char* argv[] = {"msimple", "-nohess"};
147 147
  test_ad_comm ad(argc, argv);
148 148
  test_named_dvar_vector ff;
149 149
  try

Also available in: Unified diff