[PATCH 1/7] tests/bench-slope: skip CPU warm-up in regression tests

Jussi Kivilinna jussi.kivilinna at iki.fi
Tue Jan 17 20:17:35 CET 2023


* tests/bench-slope.c (warm_up_cpu): Skip in regression tests.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
 tests/bench-slope.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/bench-slope.c b/tests/bench-slope.c
index 99b444e0..f8031e5e 100644
--- a/tests/bench-slope.c
+++ b/tests/bench-slope.c
@@ -2966,6 +2966,9 @@ warm_up_cpu (void)
 {
   struct nsec_time start, end;
 
+  if (in_regression_test)
+    return;
+
   get_nsec_time (&start);
   do
     {
-- 
2.37.2




More information about the Gcrypt-devel mailing list