diff options
author | Janne Peltonen <janne.peltonen@nokia.com> | 2022-06-17 14:25:07 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-06-27 09:21:44 +0300 |
commit | c449f2dcbe6dc5dad278dd37eea7dcdc9c6c3d7c (patch) | |
tree | dfdf46eb0da089d75e7c9bf6deac5de2fd427114 /test | |
parent | f3aae18e4802fffc5b296188990bfa23a2dcee90 (diff) |
validation: time: shorten time monotony test
Shorten the second delay loop in the time monotony test to make the
test faster. This speeds up make check especially in slow systems
where the non-timed delay loop takes a long time.
This does not reduce test coverage since that part of the test is
redundant with the time accuracy tests. The time accuracy tests run
for a long time and will fail if the various ODP times are not
increasing over the test period.
Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/validation/api/time/time.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/validation/api/time/time.c b/test/validation/api/time/time.c index de9870f75..45bfc8264 100644 --- a/test/validation/api/time/time.c +++ b/test/validation/api/time/time.c @@ -15,7 +15,6 @@ #include "odp_cunit_common.h" #define BUSY_LOOP_CNT 30000000 /* used for t > min resolution */ -#define BUSY_LOOP_CNT_LONG 6000000000 /* used for t > 4 sec */ #define MIN_TIME_RATE 32000 #define MAX_TIME_RATE 15000000000 #define DELAY_TOLERANCE 40000000 /* deviation for delay */ @@ -140,7 +139,7 @@ static void time_test_monotony(void) lns_t2 = odp_time_local_ns(); gns_t2 = odp_time_global_ns(); - while (count < BUSY_LOOP_CNT_LONG) { + while (count < BUSY_LOOP_CNT) { count++; }; |