]> git.ipfire.org Git - thirdparty/asterisk.git/commit
unittests: Add a unit test that causes a SEGV and...
authorGeorge Joseph <gjoseph@digium.com>
Wed, 24 May 2017 20:50:56 +0000 (14:50 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 24 May 2017 20:56:14 +0000 (14:56 -0600)
commit65898c3af82e2d780a48d9d50d3b1c952c208a89
tree92235fde577cdf951a62489c06ec6947e957f0cf
parent1bddf1efc342a44f08e2f2d40f70f070b4ac542e
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
include/asterisk/test.h
main/test.c
tests/test_pbx.c