You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: manual.markdown
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -246,8 +246,8 @@ The test execution of this will *likely* (no guarantee of order in CppUTest) be:
246
246
**-sg group* only run test whose group exactly matches the string *group*
247
247
**-sn name* only run test whose name exactly matches the string *name*
248
248
**-v* verbose, print each test name as it runs
249
-
**-xg group* exclude tests whose group contains the substring *group* (3.8)
250
-
**-xn name* exclude tests whose name contains the substring *name* (3.8)
249
+
**-xg group* exclude tests whose group contains the substring *group* (v3.8)
250
+
**-xn name* exclude tests whose name contains the substring *name* (v3.8)
251
251
**"TEST(group, name)"* only run test whose group and name matches the strings group and name. This can be used to copy-paste output from the -v option on the command line.
252
252
253
253
You can specify multiple -s|sg, -s|sn and "TEST(group, name)" parameters:
@@ -391,7 +391,7 @@ Test plugins let you add a pre-action and a post-action to each test case. Plug
391
391
392
392
* Memory leak detector (provided)
393
393
* Pointer restore mechanism (provided) - helpful when tests overwrite a pointer that must be restored to its original value after the test. This is especially helpful when a pointer to a function is modified for test purposes.
394
-
* IEEE754 Floating point exceptions (provided; 3.8) - automatically checks whether any floating point exception flags are set at the end of every test and if so, fails the test.
394
+
* IEEE754 Floating point exceptions (provided; v3.8) - automatically checks whether any floating point exception flags are set at the end of every test and if so, fails the test.
395
395
* All Mutex's released - you could write a plugin that checks that any Mutexs or other shared resource is released before the test exits.
396
396
397
397
Complete Documentation for provided plugins can be found on the [Plugins Manual](plugins_manual.html) page.
By far the best way to handle output parameters is by using a custom type copier (3.8). The general principle is similar to the custom comparators described above:
302
+
By far the best way to handle output parameters is by using a custom type copier (v3.8). The general principle is similar to the custom comparators described above:
303
303
304
304
{% highlight c++ %}
305
305
MyType outputValue = 4;
@@ -532,14 +532,14 @@ mock_c()->clear();
532
532
533
533
The C interface uses a similar builder structure as the C++ interface. It is far less common in C, but it works the same.
534
534
535
-
It is now also possible to specify the actual return value in the same way as with C++ (3.8):
535
+
It is now also possible to specify the actual return value in the same way as with C++ (v3.8):
Copy file name to clipboardExpand all lines: plugin_manual.markdown
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,12 +120,12 @@ This plugin detects floating point error conditions and fails the test, if any w
120
120
This is a list of floating point error conditions, and how they are supported by the plugin:
121
121
122
122
{% highlight c++ %}
123
-
FE_DIVBYZERO /* supported (3.8) */
124
-
FE_OVERFLOW /* supported (3.8) */
125
-
FE_UNDERFLOW /* supported (3.8) */
126
-
FE_INVALID /* supported (3.8) */
127
-
FE_INEXACT /* supported; disabled by default (3.8) */
128
-
FE_DENORMAL /* NOT supported (3.8) */
123
+
FE_DIVBYZERO /* supported (v3.8) */
124
+
FE_OVERFLOW /* supported (v3.8) */
125
+
FE_UNDERFLOW /* supported (v3.8) */
126
+
FE_INVALID /* supported (v3.8) */
127
+
FE_INEXACT /* supported; disabled by default (v3.8) */
128
+
FE_DENORMAL /* NOT supported (v3.8) */
129
129
{% endhighlight %}
130
130
131
131
You can turn on FE_INEXACT checking manually, although this probably won't be very useful most of the time, since almost every floating-point operation is likely to set this flag:
0 commit comments