Пример #1
0
int sample_test_codes_4() {

    /** Step 1. Initialize the framework */
    if (rcu_init() == RCU_E_NG) {
        return(-1);
    }

    /** Step 2. Register a test module table */
    if ((rcu_add_test_mod_tbl(RCU_DEFAULT_REGISTRY,sample_test_mod_tbl)) ==
            RCU_E_NG) {
        rcu_destroy();
        return(-1);
    }

    /** Optionally,dump the test database */
    rcu_dump_test_dbase();

    /** Step 3. Run the test machine */
    rcu_run_test_mach();

    /** Step 4. Destroy the framework */
    rcu_destroy();

    return(0);
}
Пример #2
0
RCU_API int rcu_run_tests() {
    return rcu_run_test_mach();
}