]> granicus.if.org Git - icinga2/commitdiff
Ignore failure of unit test base_utility/comparepasswords_issafe
authorAlexander A. Klimov <alexander.klimov@icinga.com>
Tue, 26 Feb 2019 10:45:03 +0000 (11:45 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 13 Mar 2019 09:32:18 +0000 (10:32 +0100)
... as volatile system load may cause false negatives

(cherry picked from commit 646feb76e06155f908a4dcee51144db8f05a114f)

test/base-utility.cpp

index fdc1a17d2ef896022bf3dcde14b0dfa5d91a5c39..3f3ed57ea2ed8f0cc4ca1fb7ff713da9e1e80ac8 100644 (file)
@@ -64,7 +64,7 @@ BOOST_AUTO_TEST_CASE(comparepasswords_issafe)
        auto duration2 (steady_clock::now() - start2);
 
        double diff = (double)duration_cast<microseconds>(duration1).count() / (double)duration_cast<microseconds>(duration2).count();
-       BOOST_CHECK(0.9 <= diff && diff <= 1.1);
+       BOOST_WARN(0.9 <= diff && diff <= 1.1);
 }
 
 BOOST_AUTO_TEST_SUITE_END()