From 7bd2073bc0c899b84e1c0df56f520717213f8cf1 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 27 Nov 2021 09:26:47 +0100 Subject: [PATCH] QA test: fix a not working test on msys2 KIID::SeedGenerator( 0l ) worked, but did not give same values for KIID than calculated from another platform. --- qa/common/test_kiid.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/qa/common/test_kiid.cpp b/qa/common/test_kiid.cpp index 8c5812f79b..6dac2d0c44 100644 --- a/qa/common/test_kiid.cpp +++ b/qa/common/test_kiid.cpp @@ -28,17 +28,24 @@ BOOST_AUTO_TEST_CASE( Seeding ) { KIID::SeedGenerator( 0l ); + KIID a0; + KIID b0; + KIID c0; + KIID d0; + + KIID::SeedGenerator( 0l ); + KIID a; - BOOST_CHECK_EQUAL( a.Hash(), 15552532309556242017ul ); + BOOST_CHECK_EQUAL( a.Hash(), a0.Hash() ); KIID b; - BOOST_CHECK_EQUAL( b.Hash(), 13842873335846156666ul ); + BOOST_CHECK_EQUAL( b.Hash(), b0.Hash() ); KIID c; - BOOST_CHECK_EQUAL( c.Hash(), 15995408467689523943ul ); + BOOST_CHECK_EQUAL( c.Hash(), c0.Hash() ); KIID d; - BOOST_CHECK_EQUAL( d.Hash(), 4943106325342180035ul ); + BOOST_CHECK_EQUAL( d.Hash(), d0.Hash() ); }