Mistake on this page?
Report an issue in GitHub or email us
control_t Struct Reference

Control class for specifying test case attributes. More...

#include <utest_types.h>

Inheritance diagram for control_t:
base_control_t

Detailed Description

Control class for specifying test case attributes.

This class encapsulated control information about test cases which, when returned from a test case influences the behavior of the test harness. Instead of using this class directly it is recommended to use the aliases for clearer semantics:

control_t test_case(const size_t call_count) {
// repeat 5 times for a total of 6 calls
return (call_count < 6) ? CaseRepeatHandler : CaseNext;
}

This class overloads the + operator to implement something similiar to saturated arbitration:

You may then add timeouts and repeats together:

control_t test_case(const size_t call_count) {
// repeat 5 times for a total of 6 calls, each with a 500ms asynchronous timeout
return CaseTimeout(500) + ((call_count < 6) ? CaseRepeatAll : CaseNoRepeat);
}

In the future, more control information may be added transparently and backwards compatible.

Definition at line 174 of file utest_types.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.