]> git.eshelyaron.com Git - emacs.git/commitdiff
Unbreak interactive run of a flymake test (bug#29267)
authorJoão Távora <joaotavora@gmail.com>
Sun, 12 Nov 2017 12:32:25 +0000 (12:32 +0000)
committerJoão Távora <joaotavora@gmail.com>
Sun, 12 Nov 2017 12:34:36 +0000 (12:34 +0000)
See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19657#20 for the
technique used here.

* test/lisp/progmodes/flymake-tests.el (ruby-backend):
Let-bind abbreviated-home-dir.

test/lisp/progmodes/flymake-tests.el

index bc194b69ccbd14a4a59f6cc23d78f170cb2012c7..8eb180a51301b22d70c9d7ed10dceb3f270aa26f 100644 (file)
@@ -124,7 +124,10 @@ SEVERITY-PREDICATE is used to setup
   ;; Some versions of ruby fail if HOME doesn't exist (bug#29187).
   (let* ((tempdir (make-temp-file "flymake-tests-ruby" t))
          (process-environment (cons (format "HOME=%s" tempdir)
-                                    process-environment)))
+                                    process-environment))
+         ;; And see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19657#20
+         ;; for this particular yuckiness
+         (abbreviated-home-dir nil))
     (unwind-protect
         (flymake-tests--with-flymake ("test.rb")
           (flymake-goto-next-error)