[Bf-blender-cvs] [e20171e59f4] master: Fix build error with tests for removed functions

Hans Goudey noreply at git.blender.org
Mon Jul 6 22:39:50 CEST 2020


Commit: e20171e59f4893b1f12e4c694eec0211629f8e06
Author: Hans Goudey
Date:   Mon Jul 6 16:39:28 2020 -0400
Branches: master
https://developer.blender.org/rBe20171e59f4893b1f12e4c694eec0211629f8e06

Fix build error with tests for removed functions

These GHash functions were removed in 12817083ec61,
so the tests should be removed too.

===================================================================

M	tests/gtests/blenlib/BLI_ghash_performance_test.cc

===================================================================

diff --git a/tests/gtests/blenlib/BLI_ghash_performance_test.cc b/tests/gtests/blenlib/BLI_ghash_performance_test.cc
index 1002ff7d2df..201598869e8 100644
--- a/tests/gtests/blenlib/BLI_ghash_performance_test.cc
+++ b/tests/gtests/blenlib/BLI_ghash_performance_test.cc
@@ -535,42 +535,6 @@ static void int2_ghash_tests(GHash *ghash, const char *id, const unsigned int nb
   printf("========== ENDED %s ==========\n\n", id);
 }
 
-TEST(ghash, Int2GHash2000)
-{
-  GHash *ghash = BLI_ghash_new(
-      BLI_ghashutil_uinthash_v2_p, BLI_ghashutil_uinthash_v2_cmp, __func__);
-
-  int2_ghash_tests(ghash, "Int2GHash - GHash - 2000", 2000);
-}
-
-#ifdef GHASH_RUN_BIG
-TEST(ghash, Int2GHash20000000)
-{
-  GHash *ghash = BLI_ghash_new(
-      BLI_ghashutil_uinthash_v2_p, BLI_ghashutil_uinthash_v2_cmp, __func__);
-
-  int2_ghash_tests(ghash, "Int2GHash - GHash - 20000000", 20000000);
-}
-#endif
-
-TEST(ghash, Int2Murmur2a2000)
-{
-  GHash *ghash = BLI_ghash_new(
-      BLI_ghashutil_uinthash_v2_p_murmur, BLI_ghashutil_uinthash_v2_cmp, __func__);
-
-  int2_ghash_tests(ghash, "Int2GHash - Murmur - 2000", 2000);
-}
-
-#ifdef GHASH_RUN_BIG
-TEST(ghash, Int2Murmur2a20000000)
-{
-  GHash *ghash = BLI_ghash_new(
-      BLI_ghashutil_uinthash_v2_p_murmur, BLI_ghashutil_uinthash_v2_cmp, __func__);
-
-  int2_ghash_tests(ghash, "Int2GHash - Murmur - 20000000", 20000000);
-}
-#endif
-
 /* MultiSmall: create and manipulate a lot of very small ghashes
  * (90% < 10 items, 9% < 100 items, 1% < 1000 items). */



More information about the Bf-blender-cvs mailing list