summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Joseph <gjoseph@digium.com>2017-05-24 14:50:56 -0600
committerGeorge Joseph <gjoseph@digium.com>2017-05-24 15:58:18 -0500
commit08edd54c1b11ec35bfa988bf9d3115e6ae9a94f3 (patch)
tree1d429d967a3cd0a7a1598a865c484e51fe987348 /include
parent2e7866ebb7773fdd4f67e80f3747e41d84bcb93b (diff)
unittests: Add a unit test that causes a SEGV and...
...that can only be run by explicitly calling it with 'test execute category /DO_NOT_RUN/ name RAISE_SEGV' This allows us to more easily test CI and debugging tools that should do certain things when asterisk coredumps. To allow this a new member was added to the ast_test_info structure named 'explicit_only'. If set by a test, the test will be skipped during a 'test execute all' or 'test execute category ...'. Change-Id: Ia3a11856aae4887df9a02b6b081cc777b36eb6ed
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/test.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/test.h b/include/asterisk/test.h
index 49731feb6..90e772cbc 100644
--- a/include/asterisk/test.h
+++ b/include/asterisk/test.h
@@ -241,6 +241,14 @@ struct ast_test_info {
* \note The description must not end with a newline.
*/
const char *description;
+ /*!
+ * \brief Only run if explicitly named
+ *
+ * \details
+ * Run this test only if it's explicitly named on the command line.
+ * Do NOT run it as part of an execute category or execute all command.
+ */
+ unsigned int explicit_only;
};
#ifdef TEST_FRAMEWORK