diff options
| author | Chong Yidong | 2013-02-03 16:55:45 +0800 |
|---|---|---|
| committer | Chong Yidong | 2013-02-03 16:55:45 +0800 |
| commit | 984096edf56bebe1359a5ac9e2c7f91f6fbf36f5 (patch) | |
| tree | 89a3d6455aaa7c8531d005408e918040aaf73990 | |
| parent | 8ea41ea99608c7483ef5c91e230a760cf90bfb54 (diff) | |
| download | emacs-984096edf56bebe1359a5ac9e2c7f91f6fbf36f5.tar.gz emacs-984096edf56bebe1359a5ac9e2c7f91f6fbf36f5.zip | |
Fix byte compilation warning in files testsuite.
* automated/files.el (file-test--do-local-variables-test): Avoid
compilation warning message.
| -rw-r--r-- | test/ChangeLog | 5 | ||||
| -rw-r--r-- | test/automated/files.el | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 7e893ba6768..651453566f2 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-02-03 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * automated/files.el (file-test--do-local-variables-test): Avoid | ||
| 4 | compilation warning message. | ||
| 5 | |||
| 1 | 2013-01-27 Dmitry Gutov <dgutov@yandex.ru> | 6 | 2013-01-27 Dmitry Gutov <dgutov@yandex.ru> |
| 2 | 7 | ||
| 3 | * automated/ruby-mode-tests.el | 8 | * automated/ruby-mode-tests.el |
diff --git a/test/automated/files.el b/test/automated/files.el index 8712d1f620e..f2d2192a420 100644 --- a/test/automated/files.el +++ b/test/automated/files.el | |||
| @@ -23,9 +23,9 @@ | |||
| 23 | 23 | ||
| 24 | ;; Set to t if the local variable was set, `query' if the query was | 24 | ;; Set to t if the local variable was set, `query' if the query was |
| 25 | ;; triggered. | 25 | ;; triggered. |
| 26 | (defvar files-test-result) | 26 | (defvar files-test-result nil) |
| 27 | 27 | ||
| 28 | (defvar files-test-safe-result) | 28 | (defvar files-test-safe-result nil) |
| 29 | (put 'files-test-safe-result 'safe-local-variable 'booleanp) | 29 | (put 'files-test-safe-result 'safe-local-variable 'booleanp) |
| 30 | 30 | ||
| 31 | (defun files-test-fun1 () | 31 | (defun files-test-fun1 () |
| @@ -123,11 +123,11 @@ form.") | |||
| 123 | (defun file-test--do-local-variables-test (str test-settings) | 123 | (defun file-test--do-local-variables-test (str test-settings) |
| 124 | (with-temp-buffer | 124 | (with-temp-buffer |
| 125 | (insert str) | 125 | (insert str) |
| 126 | (setq files-test-result nil | ||
| 127 | files-test-safe-result nil) | ||
| 126 | (let ((enable-local-variables (nth 0 test-settings)) | 128 | (let ((enable-local-variables (nth 0 test-settings)) |
| 127 | (enable-local-eval (nth 1 test-settings)) | 129 | (enable-local-eval (nth 1 test-settings)) |
| 128 | (files-test-result nil) | 130 | (files-test-queried nil)) |
| 129 | (files-test-queried nil) | ||
| 130 | (files-test-safe-result nil)) | ||
| 131 | (hack-local-variables) | 131 | (hack-local-variables) |
| 132 | (eval (nth 2 test-settings))))) | 132 | (eval (nth 2 test-settings))))) |
| 133 | 133 | ||