Navigation Menu

Skip to content

Commit

Permalink
Disable fail malloc on creating new database
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 16, 2015
1 parent 11d5c0e commit b3e21da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/grntest/test-runner.rb
Expand Up @@ -461,6 +461,9 @@ def create_config_file(context, host, port, pid_file_path)

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,
Expand All @@ -470,7 +473,7 @@ def create_empty_database(db_path)
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

Expand Down

0 comments on commit b3e21da

Please sign in to comment.