iucar / rpms / root

Forked from rpms/root 3 years ago
Clone
Blob Blame History Raw
From dd6d00b07778023449a7e6fe01f90a524237b20a Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
Date: Mon, 1 Jul 2019 08:53:15 +0200
Subject: [PATCH] Increase test tolerence

Test fails on aarch64 and ppc64le on Fedora 30 and Fedora rawhide:
Test  3 : Purge, Reuse of gaps in TFile......................... FAILED
         File size= 52010 (expected 51886 +/- 100)
         Comp Fact=  2.00 (expected 2.1 +/- 0.3)
---
 test/stress.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/stress.cxx b/test/stress.cxx
index 509bb0f17d..c0b44d9b77 100644
--- a/test/stress.cxx
+++ b/test/stress.cxx
@@ -406,7 +406,7 @@ void stress3()
 #else
    constexpr Long64_t lastgood = 51886;
 #endif
-   constexpr Long64_t tolerance = 100;
+   constexpr Long64_t tolerance = 150;
 #ifdef R__HAS_DEFAULT_LZ4
       constexpr Long64_t difflastgoodlz4 = 5500;
       if (last < lastgood - tolerance || last > lastgood + difflastgoodlz4 + tolerance || comp < 1.5 || comp > 2.1)
-- 
2.21.0