~brianaker/libmemcached/update-m4-sept

« back to all changes in this revision

Viewing changes to libtest/runner.cc

  • Committer: Brian Aker
  • Date: 2013-01-28 22:51:05 UTC
  • mfrom: (1079.1.65 workspace)
  • mto: This revision was merged to the branch mainline in revision 1099.
  • Revision ID: brian@tangent.org-20130128225105-8z352439kwu8vgku
Merge with 1.0 trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
  try {
51
51
    ret= run(func, object);
52
52
  }
53
 
  catch (libtest::__skipped e)
 
53
  catch (const libtest::__skipped& e)
54
54
  {
55
55
    ret= TEST_SKIPPED;
56
56
  }
57
 
  catch (libtest::__failure e)
 
57
  catch (const libtest::__failure& e)
58
58
  {
59
59
    libtest::stream::make_cerr(e.file(), e.line(), e.func()) << e.what();
60
60
    ret= TEST_FAILURE;
61
61
  }
62
 
  catch (libtest::__success)
 
62
  catch (const libtest::__success&)
63
63
  {
64
64
    ret= TEST_SUCCESS;
65
65
  }
66
 
  catch (libtest::fatal& e)
 
66
  catch (const libtest::fatal&)
67
67
  {
68
68
    throw;
69
69
  }
70
 
  catch (std::exception& e)
 
70
  catch (const std::exception& e)
71
71
  {
72
72
    libtest::stream::make_cerr(LIBYATL_DEFAULT_PARAM) << e.what();
73
73
    throw;
87
87
  try {
88
88
    ret= pre(func, object);
89
89
  }
90
 
  catch (libtest::__skipped e)
 
90
  catch (const libtest::__skipped& e)
91
91
  {
92
92
    ret= TEST_SKIPPED;
93
93
  }
94
 
  catch (libtest::__failure e)
 
94
  catch (const libtest::__failure& e)
95
95
  {
96
96
    libtest::stream::make_cout(e.file(), e.line(), e.func()) << e.what();
97
97
    ret= TEST_FAILURE;
98
98
  }
99
 
  catch (libtest::__success)
 
99
  catch (const libtest::__success&)
100
100
  {
101
101
    ret= TEST_SUCCESS;
102
102
  }
103
 
  catch (libtest::fatal& e)
 
103
  catch (const libtest::fatal& e)
104
104
  {
105
105
    throw;
106
106
  }
107
 
  catch (std::exception& e)
 
107
  catch (const std::exception& e)
108
108
  {
109
109
    libtest::stream::make_cerr(LIBYATL_DEFAULT_PARAM) << e.what();
110
110
    throw;
124
124
  try {
125
125
    ret= post(func, object);
126
126
  }
127
 
  catch (libtest::__skipped e)
 
127
  catch (const libtest::__skipped& e)
128
128
  {
129
129
    ret= TEST_SKIPPED;
130
130
  }
131
 
  catch (libtest::__failure e)
 
131
  catch (const libtest::__failure& e)
132
132
  {
133
133
    libtest::stream::make_cerr(LIBYATL_DEFAULT_PARAM) << e.what();
134
134
    ret= TEST_FAILURE;
135
135
  }
136
 
  catch (libtest::__success)
 
136
  catch (const libtest::__success&)
137
137
  {
138
138
    ret= TEST_SUCCESS;
139
139
  }
140
 
  catch (libtest::fatal& e)
 
140
  catch (const libtest::fatal& e)
141
141
  {
142
142
    throw;
143
143
  }
144
 
  catch (std::exception& e)
 
144
  catch (const std::exception& e)
145
145
  {
146
146
    libtest::stream::make_cerr(LIBYATL_DEFAULT_PARAM) << e.what();
147
147
    throw;