Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
30a8cfa2
Commit
30a8cfa2
authored
Jun 09, 2019
by
Lars Ingebrigtsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start implementing tests
parent
a3f4c42d
Pipeline
#1958
failed with stage
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
test/lisp/emacs-lisp/bytecomp-tests.el
test/lisp/emacs-lisp/bytecomp-tests.el
+24
-0
No files found.
test/lisp/emacs-lisp/bytecomp-tests.el
View file @
30a8cfa2
...
...
@@ -680,6 +680,30 @@ literals (Bug#20852)."
(should-not (member '(byte-constant 333) lap))
(should (member '(byte-constant 444) lap)))))
(ert-deftest bytecomp-test--with-suppressed-warnings ()
(let ((lexical-binding t)
(byte-compile-log-buffer (generate-new-buffer "
*Compile-Log*
")))
(let ((form '(defvar prefixless)))
(with-current-buffer byte-compile-log-buffer
(let ((inhibit-read-only t))
(erase-buffer)))
(test-byte-comp-compile-and-load t
form)
(with-current-buffer byte-compile-log-buffer
(goto-char (point-min))
(should (re-search-forward "
global/dynamic
var
.
prefixless.
lacks
"
nil t)))
(with-current-buffer byte-compile-log-buffer
(let ((inhibit-read-only t))
(erase-buffer)))
(test-byte-comp-compile-and-load t
`(with-suppressed-warnings ((lexical prefixless))
,form))
(with-current-buffer byte-compile-log-buffer
(goto-char (point-min))
(should-not (re-search-forward "
global/dynamic
var
.
prefixless.
lacks
"
nil
t
)
)))))
;; Local Variables:
;; no-byte-compile: t
;; End:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment