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

A table of handlers. More...

#include <utest_default_handlers.h>

Detailed Description

A table of handlers.

This structure stores all modifyable handlers and provides accessors to filter out the default handler. So if this structure contains handlers, and you want to use these handlers as a default backup, you can use the get_handler function to choose the right handler.

Example:

const handler_t defaults = { ... }; // your default handlers
// will return the handler in defaults.
test_setup_handler_t handler = defaults.get_handler(default_handler);
// you will still need to manually check the handler before executing it
if (handler != ignore_handler) handler(...);
extern test_teardown_handler_t custom_handler(...);
// will return `custom_handler`
test_teardown_handler_t handler = defaults.get_handler(custom_handler);
// you will still need to manually check the handler before executing it
if (handler != ignore_handler) handler(...);

Definition at line 101 of file utest_default_handlers.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.