We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 686e0cc commit 9a71cb1Copy full SHA for 9a71cb1
Rakefile
@@ -3,10 +3,6 @@ require "rake/testtask"
3
require "rbconfig"
4
require 'rake/extensiontask'
5
6
-on_windows = /mswin|mingw/ =~ RUBY_PLATFORM
7
-
8
-require "ruby_memcheck" if !on_windows
9
10
$LOAD_PATH << File.join(__dir__, "test")
11
12
ruby = ENV["RUBY"] || RbConfig.ruby
@@ -25,7 +21,9 @@ end
25
21
26
22
Rake::TestTask.new(test: :compile, &test_config)
27
23
28
-unless on_windows
24
+unless Gem.win_platform?
+ require "ruby_memcheck"
+
29
namespace :test do
30
RubyMemcheck::TestTask.new(valgrind: :compile, &test_config)
31
end
0 commit comments