]> 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)
committerGeorge Joseph <gjoseph@sangoma.com>
Fri, 7 Jul 2023 19:31:52 +0000 (13:31 -0600)
commit730bf4a8b426969d4469e3d0255ffb60d95a2886
tree833ae80f3e30b622e2ff05f3d446a5ba0a9aa690
parentc8c528e9d3bb2f8d46609c645bdce3bf9a7bb336
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