[Groonga-commit] groonga/grntest at 08357d6 [master] Suppress libdl related errors

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Mar 12 12:01:20 JST 2015


Kouhei Sutou	2015-03-12 12:01:20 +0900 (Thu, 12 Mar 2015)

  New Revision: 08357d6a508961d9e3a267838766faf1425ee8fc
  https://github.com/groonga/grntest/commit/08357d6a508961d9e3a267838766faf1425ee8fc

  Message:
    Suppress libdl related errors

  Modified files:
    lib/grntest/test-runner.rb

  Modified: lib/grntest/test-runner.rb (+22 -0)
===================================================================
--- lib/grntest/test-runner.rb    2015-03-12 11:26:48 +0900 (1d650b9)
+++ lib/grntest/test-runner.rb    2015-03-12 12:01:20 +0900 (a7dea14)
@@ -247,6 +247,28 @@ EOC
         command_line << "--leak-check=full"
         command_line << "--show-reachable=yes"
         command_line << "--track-origins=yes"
+        valgrind_suppressions_file_path =
+          context.temporary_directory_path + "groonga.supp"
+        valgrind_suppressions_file_path.open("w") do |suppressions|
+          suppressions.puts(<<-SUPPRESSIONS)
+{
+  dlopen
+  Memcheck:Leak
+  match-leak-kinds: reachable
+  ...
+  fun:dlopen*
+  ...
+}
+{
+  _dl_catch_error
+  Memcheck:Leak
+  match-leak-kinds: reachable
+  ...
+  fun:_dl_catch_error
+}
+          SUPPRESSIONS
+        end
+        command_line << "--suppressions=#{valgrind_suppressions_file_path}"
         command_line << "--verbose"
       else
         spawn_options[:chdir] = context.temporary_directory_path.to_s
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index