Description: Fix FTBFS with sbuild: Use a temporary directory for the inline
 files used during the test.
Bug-Debian: http://bugs.debian.org/664973
Bug-Ubuntu: https://bugs.launchpad.net/bugs/935413

--- ruby-parsetree-3.0.8.orig/test/test_parse_tree.rb
+++ ruby-parsetree-3.0.8/test/test_parse_tree.rb
@@ -1,12 +1,18 @@
 #!/usr/local/bin/ruby -w
 
-dir = File.expand_path "~/.ruby_inline"
-if test ?d, dir then
-  require 'fileutils'
-  puts "nuking #{dir}"
-  # force removal, Windoze is bitching at me, something to hunt later...
-  FileUtils.rm_r dir, :force => true
-end
+# instead of using Inline's regular directory in the user's home, use
+# a temporary directory
+
+#dir = File.expand_path "~/.ruby_inline"
+#if test ?d, dir then
+#  require 'fileutils'
+#  puts "nuking #{dir}"
+#  # force removal, Windoze is bitching at me, something to hunt later...
+#  FileUtils.rm_r dir, :force => true
+#end
+
+require 'tmpdir'
+ENV['INLINEDIR'] = Dir.mktmpdir
 
 require 'minitest/autorun'
 require 'parse_tree'
