[Groonga-commit] groonga/grntest at b3e21da [master] Disable fail malloc on creating new database

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 16 15:28:56 JST 2015


Kouhei Sutou	2015-04-16 15:28:56 +0900 (Thu, 16 Apr 2015)

  New Revision: b3e21dae8c62d75f7758819bfdcb711ddee2e37b
  https://github.com/groonga/grntest/commit/b3e21dae8c62d75f7758819bfdcb711ddee2e37b

  Message:
    Disable fail malloc on creating new database

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

  Modified: lib/grntest/test-runner.rb (+4 -1)
===================================================================
--- lib/grntest/test-runner.rb    2015-03-28 14:00:43 +0900 (7cafaef)
+++ lib/grntest/test-runner.rb    2015-04-16 15:28:56 +0900 (99da652)
@@ -461,6 +461,9 @@ http {
 
     def create_empty_database(db_path)
       output_fd = Tempfile.new("create-empty-database")
+      env = {
+        "GRN_FMALLOC_PROB" => nil,
+      }
       create_database_command = [
         @tester.groonga,
         "--output-fd", output_fd.to_i.to_s,
@@ -470,7 +473,7 @@ http {
       options = {
         output_fd.to_i => output_fd.to_i
       }
-      system(*create_database_command, options)
+      system(env, *create_database_command, options)
       output_fd.close(true)
     end
 
-------------- next part --------------
HTML����������������������������...
Download 



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