diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-20 10:55:36 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-20 11:06:13 +0100 |
commit | 77ac1519e863b7095f69c976353f7647c6f6f63b (patch) | |
tree | dae63260f998c0afcbced1394496d6d3df1547fb /cpukit/libtest/t-test.c | |
parent | libtest: Fix use of T_check_true() (diff) | |
download | rtems-77ac1519e863b7095f69c976353f7647c6f6f63b.tar.bz2 |
libtest: Use test configuration in T_now()
Use the user provided now handler of the test configuration to get the
time in T_now().
Diffstat (limited to 'cpukit/libtest/t-test.c')
-rw-r--r-- | cpukit/libtest/t-test.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpukit/libtest/t-test.c b/cpukit/libtest/t-test.c index 5e9be54ed2..aedf9a49b1 100644 --- a/cpukit/libtest/t-test.c +++ b/cpukit/libtest/t-test.c @@ -994,3 +994,14 @@ T_set_putchar(T_putchar new_putchar, void *new_arg, T_putchar *old_putchar, ctx->putchar = new_putchar; ctx->putchar_arg = new_arg; } + +T_time +T_now(void) +{ + T_context *ctx; + const T_config *config; + + ctx = &T_instance; + config = ctx->config; + return (*config->now)(); +} |