diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-10-11 10:45:27 +0200 |
---|---|---|
committer | Moyano, Gabriel <gabriel.moyano@dlr.de> | 2021-11-16 09:48:22 +0100 |
commit | 1c378f1a9887956e51d51b7d63479a61c8b4e602 (patch) | |
tree | 315b9a82a31a74757a8624a5ad8c6dd058e57c10 /testsuites | |
parent | score: Initialize timehand generation to UINT_MAX (diff) | |
download | rtems-1c378f1a9887956e51d51b7d63479a61c8b4e602.tar.bz2 |
score: Port large time delta support to RTEMS
Diffstat (limited to 'testsuites')
-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 81b705473e..12d5a7820d 100644 --- a/testsuites/sptests/sptimecounter01/init.c +++ b/testsuites/sptests/sptimecounter01/init.c @@ -196,11 +196,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); |