# File lib/rubygems/commands/test_command.rb, line 409
  def get_rake_args(rake_path, *args)
    if RUBY_PLATFORM =~ /mswin/ and RUBY_VERSION > '1.9'
      #
      # XXX GarbageCollect breaks ruby -S with rake on 1.9.
      #
     
      rake_args = [ rake_path ] + args
    else
      rake_args = [ Gem.ruby, '-rubygems', '-S' ] + [ rake_path, '--' ] + args
    end

    if RUBY_PLATFORM =~ /mswin|mingw/
      # we don't use shellwords for the rest because they use execve().
      require 'shellwords'
      rake_args.map { |x| Shellwords.shellescape(x) }.join(' ')
    else
      rake_args
    end
  end