summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ChangeLog4
-rw-r--r--test/automated/files.el11
2 files changed, 15 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index d330311e1d3..b4195ea7d58 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,7 @@
+2012-08-10 Glenn Morris <rgm@gnu.org>
+
+ * automated/files.el (files-test-disable-local-variables): New test.
+
2012-08-08 Glenn Morris <rgm@gnu.org>
* automated/files.el: New file.
diff --git a/test/automated/files.el b/test/automated/files.el
index 43287ec0ed3..e43d8c32f85 100644
--- a/test/automated/files.el
+++ b/test/automated/files.el
@@ -38,4 +38,15 @@
(hack-local-variables)
(should (eq files-test-var1 nil)))))
+(ert-deftest files-test-disable-local-variables ()
+ "Test that setting enable-local-variables to nil works."
+ (with-temp-buffer
+ (insert "text\n"
+ ";; Local Variables:\n"
+ ";; files-test-var1: t\n"
+ ";; End:\n")
+ (let ((enable-local-variables nil))
+ (hack-local-variables)
+ (should (eq files-test-var1 nil)))))
+
;;; files.el ends here