Created
September 18, 2017 21:37
-
-
Save ch1c0t/3698bd716e1abec58f9721874d8676df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/mutant/isolation/fork.rb b/lib/mutant/isolation/fork.rb | |
index e2476478..36130b62 100644 | |
--- a/lib/mutant/isolation/fork.rb | |
+++ b/lib/mutant/isolation/fork.rb | |
@@ -61,8 +61,8 @@ module Mutant | |
# @return [Object] | |
def result | |
devnull.call do |null| | |
- stderr.reopen(null) | |
- stdout.reopen(null) | |
+ #stderr.reopen(null) | |
+ #stdout.reopen(null) | |
yield | |
end | |
end | |
diff --git a/lib/mutant/loader.rb b/lib/mutant/loader.rb | |
index a83b75f2..b6244912 100644 | |
--- a/lib/mutant/loader.rb | |
+++ b/lib/mutant/loader.rb | |
@@ -15,13 +15,17 @@ module Mutant | |
# One off the very few valid uses of eval | |
# | |
# @return [undefined] | |
- def call | |
- kernel.eval( | |
- Unparser.unparse(node), | |
- binding, | |
- subject.source_path.to_s, | |
- subject.source_line | |
- ) | |
- end | |
+def call | |
+ puts <<~S | |
+ Current mutation: | |
+ #{Unparser.unparse node} | |
+ S | |
+ kernel.eval( | |
+ Unparser.unparse(node), | |
+ binding, | |
+ subject.source_path.to_s, | |
+ subject.source_line | |
+ ) | |
+end | |
end # Loader | |
end # Mutant |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment