aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristophe Milard <christophe.milard@linaro.org>2016-01-13 18:08:13 +0100
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-01-25 16:05:50 +0300
commitf4016bd83146b7ecb267d12a03c61ba6ad84b8cf (patch)
treec4182cd00fb7421922cc598497021afe1261daf8 /doc
parentd04e2b169ff73a492d1e22fef3c5533d93668ac3 (diff)
doc: implementers-guide: inactive precond tests
Signed-off-by: Christophe Milard <christophe.milard@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/implementers-guide/implementers-guide.adoc21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/implementers-guide/implementers-guide.adoc b/doc/implementers-guide/implementers-guide.adoc
index 77dc55c1e..d68354ddc 100644
--- a/doc/implementers-guide/implementers-guide.adoc
+++ b/doc/implementers-guide/implementers-guide.adoc
@@ -419,4 +419,25 @@ test (foo_test_x) is run. If the precondition function (foo_check_x above)
returns false, the test is not relevant (or impossible to perform) and it will
be skipped.
+=================
+*Note*
+
+Conditionnal tests can be marked as inactive, keeping the precondition
+function. Both the test and the precondition function will be skipped,
+but re-activating the test is then just a matter of changing back the macro
+from ODP_TEST_INFO_INACTIVE to ODP_TEST_INFO_CONDITIONAL:
+
+[source,c]
+------------------
+ ...
+ /* active conditionnal test */
+ ODP_TEST_INFO_CONDITIONAL(foo_test_x, foo_check_x),
+
+ /* inactive conditionnal test */
+ ODP_TEST_INFO_INACTIVE(foo_test_y, foo_check_y),
+ ...
+------------------
+=================
+
+
include::../glossary.adoc[]