struct test_behaviour

Overview

List of test behaviour switches. More…

#include <tapi_test_behaviour.h>

struct test_behaviour {
    // fields

    bool wait_on_fail;
    bool wait_on_cleanup;
    bool log_stack;
    bool log_test_fail_state;
    bool log_all_rpc;
    bool cleanup_fd_leak_check;
    bool cleanup_fd_close_enforce_libc;
    unsigned int prologue_sleep;
    bool fail_verdict;
    bool rpc_fail_verdict;
    bool use_chk_funcs;
    unsigned int iface_toggle_delay_ms;
};

Detailed Documentation

List of test behaviour switches.

Fields

bool wait_on_fail

Wait before going to cleanup in case of test failure

bool wait_on_cleanup

Wait before going to cleanup regardless of the test result. If both wait_on_fail and this one are set - wait will be done just once

bool log_stack

Enable log stack collection

bool log_test_fail_state

Log state/substate of the test on failure

bool log_all_rpc

If true, all RPC calls should be logged even if silent or silent_pass is set to true for an RPC server.

bool cleanup_fd_leak_check

After closing FD in CLEANUP_RPC_CLOSE(), check with rpc_fstat() that FD is really closed

bool cleanup_fd_close_enforce_libc

If enabled, use libc-version of close() in CLEANUP_RPC_CLOSE()

unsigned int prologue_sleep

How many sencond to sleep in prologue

bool fail_verdict

If enabled, log error verdict from TEST_FAIL() and CLEANUP_TEST_FAIL(), otherwise just an error

bool rpc_fail_verdict

If enabled, any unexpected failure of RPC call resulting in jump to cleanup will print verdict

bool use_chk_funcs

If true, in RPC calls for read(), recv(), recvfrom(), poll(), ppoll() call their __[function]_chk() variants on TA

unsigned int iface_toggle_delay_ms

How many (msec) to wait after downing an interface before bringing it up