diff mbox

[PATCHv2,2/3] validation: possibility to inactive preconded test

Message ID 1452704893-17874-2-git-send-email-christophe.milard@linaro.org
State Accepted
Commit d04e2b169ff73a492d1e22fef3c5533d93668ac3
Headers show

Commit Message

Christophe Milard Jan. 13, 2016, 5:08 p.m. UTC
When marking a test which has a precondition as temporarly inactive,
it feels better to be able to keep the precondition function:
ODP_TEST_INFO_CONDITIONAL(send_failure, check_send_failure)
will be marked as inactive by:
ODP_TEST_INFO_INACTIVE(send_failure, check_send_failure)
rather than:
ODP_TEST_INFO_INACTIVE(send_failure)
Remarking the test as active later on is then only a matter of changing
back the macro name.

Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
---
 test/validation/common/odp_cunit_common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/test/validation/common/odp_cunit_common.h b/test/validation/common/odp_cunit_common.h
index 8dbbb9f..37e8e8c 100644
--- a/test/validation/common/odp_cunit_common.h
+++ b/test/validation/common/odp_cunit_common.h
@@ -44,7 +44,7 @@  static inline void odp_cunit_test_missing(void) { }
 /* A test case that is unconditionally inactive. Its name will be registered
  * with CUnit but it won't be executed and will be reported as inactive in
  * the result summary. */
-#define ODP_TEST_INFO_INACTIVE(test_func) \
+#define ODP_TEST_INFO_INACTIVE(test_func, args...) \
 	{#test_func, odp_cunit_test_missing, odp_cunit_test_inactive}
 
 /* A test case that may be marked as inactive at runtime based on the