diff options
| author | Michael Albinus | 2015-10-27 10:01:13 +0100 |
|---|---|---|
| committer | Michael Albinus | 2015-10-27 10:01:13 +0100 |
| commit | 14d725725b058e7fb2bc081ad1137883d9079923 (patch) | |
| tree | 80279cbfe638973278afc78fcdd12075d910a60a | |
| parent | 22579baf62fc5e6a4f0482172eb7a4e71d6fbcda (diff) | |
| download | emacs-14d725725b058e7fb2bc081ad1137883d9079923.tar.gz emacs-14d725725b058e7fb2bc081ad1137883d9079923.zip | |
Fix subtle bug in auto-revert-tests.el
* test/automated/auto-revert-tests.el
(auto-revert-test02-auto-revert-mode-dired): Narrow *Messages*
buffer where it belongs to. (Bug#21668)
| -rw-r--r-- | test/automated/auto-revert-tests.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/automated/auto-revert-tests.el b/test/automated/auto-revert-tests.el index 86184d613fc..7cabc5c3e66 100644 --- a/test/automated/auto-revert-tests.el +++ b/test/automated/auto-revert-tests.el | |||
| @@ -136,8 +136,6 @@ | |||
| 136 | buf) | 136 | buf) |
| 137 | (unwind-protect | 137 | (unwind-protect |
| 138 | (progn | 138 | (progn |
| 139 | (with-current-buffer (get-buffer-create "*Messages*") | ||
| 140 | (narrow-to-region (point-max) (point-max))) | ||
| 141 | (setq buf (dired-noselect temporary-file-directory)) | 139 | (setq buf (dired-noselect temporary-file-directory)) |
| 142 | (with-current-buffer buf | 140 | (with-current-buffer buf |
| 143 | ;; `buffer-stale--default-function' checks for | 141 | ;; `buffer-stale--default-function' checks for |
| @@ -151,6 +149,8 @@ | |||
| 151 | 149 | ||
| 152 | ;; Delete file. We wait for a second, in order to have | 150 | ;; Delete file. We wait for a second, in order to have |
| 153 | ;; another timestamp. | 151 | ;; another timestamp. |
| 152 | (with-current-buffer (get-buffer-create "*Messages*") | ||
| 153 | (narrow-to-region (point-max) (point-max))) | ||
| 154 | (sleep-for 1) | 154 | (sleep-for 1) |
| 155 | (delete-file tmpfile) | 155 | (delete-file tmpfile) |
| 156 | 156 | ||