deadend_test_driver

Table of Contents

deadend_test_driver

Description

Run an array of deadend test functions (all expecting failure).

Parameters

NameDirectionDescription
testsinArray of test function pointers.
countinNumber of tests in the array.

Success

Returns number of failed tests (0 = all passed).

Failure

Function cannot fail - always returns valid count.

Usage example (Cross-references)

    
    /// Run an array of deadend tests (all expecting failure)
    int deadend_test_driver(TestFunction* tests, int count) {
    if (!tests) {
    printf("[ERROR] deadend_test_driver: NULL tests array provided\n");
    int deadend_test_driver(TestFunction* tests, int count) {
    if (!tests) {
    printf("[ERROR] deadend_test_driver: NULL tests array provided\n");
    return count; // All tests failed
    }
    // Run deadend tests if any
    if (deadend_tests && deadend_count > 0) {
    int deadend_failed  = deadend_test_driver(deadend_tests, deadend_count);
    total_failed       += deadend_failed;
    }

Share :

Related Posts

SysAbort

SysAbort Description Custom abort function that can be redirected for testing purposes. By default, this calls the standard abort() function. If a callback is set via SysSetAbortCallback, it calls the callback instead.

Read More

SysSetAbortCallback

SysSetAbortCallback Description Set a custom callback function for SysAbort. If no callback is set, SysAbort will call the standard abort() function.

Read More

simple_test_driver

simple_test_driver Description Run an array of simple test functions.

Read More