diff options
Diffstat (limited to 'test/lisp/arc-mode-tests.el')
| -rw-r--r-- | test/lisp/arc-mode-tests.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/lisp/arc-mode-tests.el b/test/lisp/arc-mode-tests.el index 43a441918a5..235a67c8649 100644 --- a/test/lisp/arc-mode-tests.el +++ b/test/lisp/arc-mode-tests.el | |||
| @@ -113,9 +113,10 @@ member MEMBER. Then the test finds ARCHIVE and ensures that function | |||
| 113 | ;; turn the most likely error into a nice | 113 | ;; turn the most likely error into a nice |
| 114 | ;; and self-explaining symbol that can be | 114 | ;; and self-explaining symbol that can be |
| 115 | ;; compared in a `should' | 115 | ;; compared in a `should' |
| 116 | (if (string= (cadr err) "Buffer format not recognized") | 116 | (if (equal (error-slot-value err 1) |
| 117 | "Buffer format not recognized") | ||
| 117 | 'signature-not-recognized | 118 | 'signature-not-recognized |
| 118 | (signal (car err) (cdr err)))))) | 119 | (signal err))))) |
| 119 | (should (eq type (quote ,type))))) | 120 | (should (eq type (quote ,type))))) |
| 120 | (when buffer (kill-buffer buffer)) | 121 | (when buffer (kill-buffer buffer)) |
| 121 | (dolist (file (list member archive)) | 122 | (dolist (file (list member archive)) |