aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/src')
-rw-r--r--test/src/data-tests.el8
-rw-r--r--test/src/regex-tests.el2
2 files changed, 5 insertions, 5 deletions
diff --git a/test/src/data-tests.el b/test/src/data-tests.el
index 8caafc11c2f..00a30559e32 100644
--- a/test/src/data-tests.el
+++ b/test/src/data-tests.el
@@ -338,19 +338,19 @@ comparing the subr with a much slower lisp implementation."
338 338
339(ert-deftest binding-test-set-constant-t () 339(ert-deftest binding-test-set-constant-t ()
340 "Test setting the constant t" 340 "Test setting the constant t"
341 (should-error (setq t 'bob) :type 'setting-constant)) 341 (with-no-warnings (should-error (setq t 'bob) :type 'setting-constant)))
342 342
343(ert-deftest binding-test-set-constant-nil () 343(ert-deftest binding-test-set-constant-nil ()
344 "Test setting the constant nil" 344 "Test setting the constant nil"
345 (should-error (setq nil 'bob) :type 'setting-constant)) 345 (with-no-warnings (should-error (setq nil 'bob) :type 'setting-constant)))
346 346
347(ert-deftest binding-test-set-constant-keyword () 347(ert-deftest binding-test-set-constant-keyword ()
348 "Test setting a keyword constant" 348 "Test setting a keyword constant"
349 (should-error (setq :keyword 'bob) :type 'setting-constant)) 349 (with-no-warnings (should-error (setq :keyword 'bob) :type 'setting-constant)))
350 350
351(ert-deftest binding-test-set-constant-nil () 351(ert-deftest binding-test-set-constant-nil ()
352 "Test setting a keyword to itself" 352 "Test setting a keyword to itself"
353 (should (setq :keyword :keyword))) 353 (with-no-warnings (should (setq :keyword :keyword))))
354 354
355;; More tests to write - 355;; More tests to write -
356;; kill-local-variable 356;; kill-local-variable
diff --git a/test/src/regex-tests.el b/test/src/regex-tests.el
index db187fd4a6a..1364bf6848a 100644
--- a/test/src/regex-tests.el
+++ b/test/src/regex-tests.el
@@ -424,7 +424,7 @@ differences in behavior.")
424 (let (failures 424 (let (failures
425 basic icase notbol noteol) 425 basic icase notbol noteol)
426 (regex-tests-generic-line 426 (regex-tests-generic-line
427 ?; "BOOST.tests" regex-tests-BOOST-whitelist 427 ?\; "BOOST.tests" regex-tests-BOOST-whitelist
428 (if (save-excursion (re-search-forward "^-" nil t)) 428 (if (save-excursion (re-search-forward "^-" nil t))
429 (setq basic (save-excursion (re-search-forward "REG_BASIC" nil t)) 429 (setq basic (save-excursion (re-search-forward "REG_BASIC" nil t))
430 icase (save-excursion (re-search-forward "REG_ICASE" nil t)) 430 icase (save-excursion (re-search-forward "REG_ICASE" nil t))