diff options
Diffstat (limited to 'test/dtrace/helper.rb')
-rw-r--r-- | test/dtrace/helper.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/dtrace/helper.rb b/test/dtrace/helper.rb index ccc708147d..f76c41b025 100644 --- a/test/dtrace/helper.rb +++ b/test/dtrace/helper.rb @@ -26,7 +26,15 @@ module DTrace d_path = d.path rb_path = rb.path - cmd = ["dtrace", "-q", "-s", d_path, "-c", "#{EnvUtil.rubybin} -I#{INCLUDE} #{rb_path}"] + case RUBY_PLATFORM + when /solaris/i + # increase bufsize to 8m (default 4m on Solaris) + cmd = [ "dtrace", "-b", "8m" ] + else + cmd = [ "dtrace" ] + end + + cmd.concat [ "-q", "-s", d_path, "-c", "#{EnvUtil.rubybin} -I#{INCLUDE} #{rb_path}"] if sudo = @@sudo [RbConfig::CONFIG["LIBPATHENV"], "RUBY", "RUBYOPT"].each do |name| if name and val = ENV[name] |