From c0327159ebbb952630deadc712dcc0c988456987 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 15 Jul 2015 10:30:25 +0200 Subject: [PATCH] src/utils_latency_test.c: Assure that large latency values also work. The cdtime_t representation of 99s doesn't fit into 32bit anymore, thereby assuring that cdtime_t is actually 64bit on platforms that currently don't pass the test, i.e. EPEL {5,6} on i386. Issue: #1139 --- src/utils_latency_test.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/utils_latency_test.c b/src/utils_latency_test.c index 9b954e0d..658b53c0 100644 --- a/src/utils_latency_test.c +++ b/src/utils_latency_test.c @@ -41,12 +41,13 @@ DEF_TEST(simple) double sum; double avg; } cases[] = { - /* val min max sum avg */ - {0.5, 0.5, 0.5, 0.5, 0.5}, - {0.3, 0.3, 0.5, 0.8, 0.4}, - {0.7, 0.3, 0.7, 1.5, 0.5}, - {2.5, 0.3, 2.5, 4.0, 1.0}, - { -1, 0.3, 2.5, 4.0, 1.0}, + /* val min max sum avg */ + {0.5, 0.5, 0.5, 0.5, 0.5}, + {0.3, 0.3, 0.5, 0.8, 0.4}, + {0.7, 0.3, 0.7, 1.5, 0.5}, + {2.5, 0.3, 2.5, 4.0, 1.0}, + { 99, 0.3, 99, 103, 20.6}, + { -1, 0.3, 99, 103, 20.6}, }; size_t i; latency_counter_t *l; -- 2.30.2