Skip to content

Commit

Permalink
Use mspec :launch instead of :flags so Agent doesn't start in sub-specs.
Browse files Browse the repository at this point in the history
There are specs that unconditionally kill the exe and that does
not allow the exe to perform any cleanup. This results in numerous
garbage rbx Agent connection files. It would be nice to have the
Agent running in all spec processes in case one hangs, but since
rbx doesn't get a chance to do cleanup when :KILL'd, there's no
good way to prevent littering these files. So Agent is only started
for the main process running the specs.
  • Loading branch information
Brian Ford committed Jan 15, 2011
1 parent fe50a42 commit 87a79dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/custom/utils/options.rb
Expand Up @@ -21,7 +21,7 @@ def profiler

def agent
on("--agent", "Start the Rubinius agent") do
config[:flags] << "-Xagent.start"
config[:launch] << "-Xagent.start"
end
end
end

0 comments on commit 87a79dc

Please sign in to comment.