]> git.ipfire.org Git - thirdparty/asterisk.git/commit
test.c: Fix counting of tests and add 2 new tests
authorGeorge Joseph <gjoseph@sangoma.com>
Tue, 28 Mar 2023 14:07:09 +0000 (08:07 -0600)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 10 Apr 2023 15:53:14 +0000 (10:53 -0500)
commita0fd95ef52593e4b7471d8045683f81b101d014a
tree51bf0bdccc79ae165cb8dc4dcbab5da343b7233e
parentdf554a447cc0c7bf6128d716a9a8d9968eb6992c
test.c: Fix counting of tests and add 2 new tests

The unit test XML output was counting all registered tests as "run"
even when only a subset were actually requested to be run and
the "failures" attribute was missing.

* The "tests" attribute of the "testsuite" element in the
  output XML now reflects only the tests actually requested
  to be executed instead of all the tests registered.

* The "failures" attribute was added to the "testsuite"
  element.

Also added 2 new unit tests that just pass and fail to be
used for CI testing.

Change-Id: Ia137814b5aeb0e1a44c75034bd3615c26021da69
doc/CHANGES-staging/test.txt [new file with mode: 0644]
main/test.c
tests/test_pbx.c