diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-10-11 10:45:27 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-15 08:56:54 +0100 |
commit | 52c53a5914f5fbe92e5b935df2b3c3fadb47d1d5 (patch) | |
tree | a46fbbdfe92d68dad9977f1f727342b0a16314bc /testsuites/sptests | |
parent | score: Initialize timehand generation to UINT_MAX (diff) | |
download | rtems-52c53a5914f5fbe92e5b935df2b3c3fadb47d1d5.tar.bz2 |
score: Port large time delta support to RTEMS
Diffstat (limited to 'testsuites/sptests')
-rw-r--r-- | testsuites/sptests/sptimecounter01/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/sptests/sptimecounter01/init.c b/testsuites/sptests/sptimecounter01/init.c index 23671e3ac8..bfeb2166f3 100644 --- a/testsuites/sptests/sptimecounter01/init.c +++ b/testsuites/sptests/sptimecounter01/init.c @@ -204,11 +204,11 @@ void boot_card(const char *cmdline) assert(bt.sec == 1); assert(bt.frac == 18446744073708); - /* Ensure that the fraction overflows and the second remains constant */ + /* Check that a large delta yields a correct time */ ctx->counter = (0xf0000000 | 1) + TEST_FREQ; rtems_bsd_binuptime(&bt); assert(ctx->counter == (0xf0000000 | 2) + TEST_FREQ); - assert(bt.sec == 1); + assert(bt.sec == 2); assert(bt.frac == 18446742522092); test_install(ctx); |