Skip to content

Instantly share code, notes, and snippets.

@ch1c0t
Created September 18, 2017 21:37
Show Gist options
  • Save ch1c0t/3698bd716e1abec58f9721874d8676df to your computer and use it in GitHub Desktop.
Save ch1c0t/3698bd716e1abec58f9721874d8676df to your computer and use it in GitHub Desktop.
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