diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-06 14:48:36 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-08-14 16:17:17 +0900 |
commit | f0754f0b2f335c84a276508cabe9eee8c46e04f8 (patch) | |
tree | e38dd242b9a093d12ccaf3e977435d2fc6611209 /Rakefile | |
parent | 223bd90cd4c8efd1340eff7af5feb77e8cb27114 (diff) | |
download | ruby-openssl-f0754f0b2f335c84a276508cabe9eee8c46e04f8.tar.gz |
test: add test/mdebug extension
It adds OpenSSL.print_mem_leaks method, that prints the memory leaks
recorded by OpenSSL. This useful to find memory leaks originating in our
bugs.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -7,12 +7,17 @@ require 'rdoc/task' Rake::ExtensionTask.new('openssl') -# the same as before Rake::TestTask.new do |t| t.libs << 'test' t.warning = true end +Rake::ExtensionTask.new('test/mdebug') do |ext| + # hack to emit mdebug.so under ./test/ + ext.ext_dir = 'test/mdebug' + ext.lib_dir = '.' +end + RDoc::Task.new do |rdoc| rdoc.rdoc_files.include("README.md", "lib/**/*.rb", "ext/**/*.c") end |