Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleanup semantics

  • Loading branch information...
commit 4aef6918e22f1ebdb24d4710ed4c2857106aa15b 1 parent c1816ba
Roger Pack rdp authored
2  Rakefile
View
@@ -71,7 +71,7 @@ task :build do
system(Gem.ruby + " extconf.rb")
system("make clean")
end
- system("make")
+ raise 'make failed' unless system("make")
FileUtils.cp 'ruby_prof.so', '../../lib' if File.exist? 'lib/ruby_prof.so'
FileUtils.cp 'ruby_prof.bundle', '../../lib' if File.exist? 'lib/ruby_prof.bundle'
end
2  test/printers_test.rb
View
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
require 'test/unit'
require 'ruby-prof'
-require 'prime'
+require File.dirname(__FILE__) + '/prime'
require 'stringio'
require 'fileutils'
require 'rubygems'
2  test/stack_printer_test.rb
View
@@ -46,7 +46,7 @@ def test_stack_can_be_printed
assert file_contents =~ /Thread: (\d+) \(100\.00% ~ ([.0-9]+)\)/
actual_time = $2.to_f
difference = (expected_time-actual_time).abs
- assert difference<0.001 # less than 1 ms
+ assert difference < 0.001 # less than 1 ms
end
def test_method_elimination
Please sign in to comment.
Something went wrong with that request. Please try again.