General

Profile

Jason Ish

  • Email: ish@unx.ca
  • Registered on: 11/09/2009
  • Last connection: 03/14/2016

Issues

Projects

  • Suricata (Manager, Developer, 11/09/2009)

Activity

04/08/2016

11:32 AM Suricata Feature #1761 (Closed): Unit tests: Provide macros for clean test failures.
Merged: https://github.com/inliniac/suricata/pull/1987
11:32 AM Suricata Feature #1760: Unit tests: Don't register return value, use 1 for success, 0 for failure.
Merged: https://github.com/inliniac/suricata/pull/1987
11:30 AM Suricata Feature #1761 (Closed): Unit tests: Provide macros for clean test failures.
Some macros could be:
FAIL_IF(expr)
FAIL_IF_NOT(expr)
FAIL_IF_NULL(expr)
FAIL_IF_NOT_NULL(expr)
PASS
PASS_IF
...
11:28 AM Suricata Feature #1760 (Closed): Unit tests: Don't register return value, use 1 for success, 0 for failure.
When registering a unit test the expected return value should not be provided. Instead use 1 for success, 0 for failure.
05:28 AM Suricata Revision fdff9e97: doxygen: define UNITTESTS to generate test framework docs
05:28 AM Suricata Revision 52f6d214: flowbits: use some of the new test macros
05:28 AM Suricata Revision 796dd522: tests: no longer necessary to provide successful return code
1 pass, 0 is fail.
05:28 AM Suricata Revision 13cf2f82: testing: new test macros, new testing documentation group.
Unit testing support macros for failing on expressions,
as well as passing tests on expressions.
If fatal unittests ...
05:28 AM Suricata Revision 52983bf3: tests: convert all test to return 0 on failure, 1 on success
05:28 AM Suricata Revision da1dec6d: counters: use some of the new macros in tests

Also available in: Atom