diff options
| author | João Távora | 2017-11-12 12:32:25 +0000 |
|---|---|---|
| committer | João Távora | 2017-11-12 12:34:36 +0000 |
| commit | fe85ce1e16fbdb67d9b241300a2b5baff1bf0164 (patch) | |
| tree | b4034e2e3c96dc9ca4676ce1e5d38389af1dcf76 | |
| parent | 48ad00390de293ee73249844d6c057440ce7bf57 (diff) | |
| download | emacs-fe85ce1e16fbdb67d9b241300a2b5baff1bf0164.tar.gz emacs-fe85ce1e16fbdb67d9b241300a2b5baff1bf0164.zip | |
Unbreak interactive run of a flymake test (bug#29267)
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.
| -rw-r--r-- | test/lisp/progmodes/flymake-tests.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/lisp/progmodes/flymake-tests.el b/test/lisp/progmodes/flymake-tests.el index bc194b69ccb..8eb180a5130 100644 --- a/test/lisp/progmodes/flymake-tests.el +++ b/test/lisp/progmodes/flymake-tests.el | |||
| @@ -124,7 +124,10 @@ SEVERITY-PREDICATE is used to setup | |||
| 124 | ;; Some versions of ruby fail if HOME doesn't exist (bug#29187). | 124 | ;; Some versions of ruby fail if HOME doesn't exist (bug#29187). |
| 125 | (let* ((tempdir (make-temp-file "flymake-tests-ruby" t)) | 125 | (let* ((tempdir (make-temp-file "flymake-tests-ruby" t)) |
| 126 | (process-environment (cons (format "HOME=%s" tempdir) | 126 | (process-environment (cons (format "HOME=%s" tempdir) |
| 127 | process-environment))) | 127 | process-environment)) |
| 128 | ;; And see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19657#20 | ||
| 129 | ;; for this particular yuckiness | ||
| 130 | (abbreviated-home-dir nil)) | ||
| 128 | (unwind-protect | 131 | (unwind-protect |
| 129 | (flymake-tests--with-flymake ("test.rb") | 132 | (flymake-tests--with-flymake ("test.rb") |
| 130 | (flymake-goto-next-error) | 133 | (flymake-goto-next-error) |