emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/emacs-24 r108095: * test/automated/files.el


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-24 r108095: * test/automated/files.el: New file.
Date: Wed, 08 Aug 2012 00:33:10 -0700
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 108095
committer: Glenn Morris <address@hidden>
branch nick: emacs-24
timestamp: Wed 2012-08-08 00:33:10 -0700
message:
  * test/automated/files.el: New file.
added:
  test/automated/files.el
modified:
  test/ChangeLog
=== modified file 'test/ChangeLog'
--- a/test/ChangeLog    2012-08-07 19:11:18 +0000
+++ b/test/ChangeLog    2012-08-08 07:33:10 +0000
@@ -1,3 +1,7 @@
+2012-08-08  Glenn Morris  <address@hidden>
+
+       * automated/files.el: New file.
+
 2012-08-07  Glenn Morris  <address@hidden>
 
        * automated/Makefile.in (all): Fix typo.

=== added file 'test/automated/files.el'
--- a/test/automated/files.el   1970-01-01 00:00:00 +0000
+++ b/test/automated/files.el   2012-08-08 07:33:10 +0000
@@ -0,0 +1,41 @@
+;;; files.el --- tests for file handling.
+
+;; Copyright (C) 2012 Free Software Foundation, Inc.
+
+;; This file is part of GNU Emacs.
+
+;; GNU Emacs is free software: you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; GNU Emacs is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
+
+;;; Code:
+
+(require 'ert)
+
+(defvar files-test-var1 nil)
+
+(defun files-test-fun1 ()
+  (setq files-test-var1 t))
+
+(ert-deftest files-test-bug12155 ()
+  "Test for http://debbugs.gnu.org/12155 ."
+  (with-temp-buffer
+    (insert "text\n"
+            ";; Local Variables:\n"
+            ";; eval: (files-test-fun1)\n"
+            ";; End:\n")
+    (let ((enable-local-variables :safe)
+          (enable-local-eval 'maybe))
+      (hack-local-variables)
+      (should (eq files-test-var1 nil)))))
+
+;;; files.el ends here


reply via email to

[Prev in Thread] Current Thread [Next in Thread]