simple_test_driver

Table of Contents

simple_test_driver

Description

Run an array of simple tests

Usage example (Cross-references)

    /// TAGS: Testing, Driver, Simple
    ///
    int simple_test_driver(TestFunction *tests, int count);
    
    ///
    int simple_test_driver(TestFunction *tests, int count) {
    if (!tests) {
    WriteFmt("[ERROR] simple_test_driver: NULL tests array provided\n");
    return count; // All tests failed
    }
    // Run normal tests if any
    if (normal_tests && normal_count > 0) {
    int failed    = simple_test_driver(normal_tests, normal_count);
    total_failed += failed;
    }

Share :