aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJoakim Verona2013-09-10 23:52:26 +0200
committerJoakim Verona2013-09-10 23:52:26 +0200
commit63dae8e97d343fd4ebfe3dc08f0e8dc932630a4c (patch)
treee5078c5545c777e21944a9ee4199a6f2c6d25ca9 /test
parent92aeabcc8a007f521a664e3aee092eb80ad0f49a (diff)
downloademacs-63dae8e97d343fd4ebfe3dc08f0e8dc932630a4c.tar.gz
emacs-63dae8e97d343fd4ebfe3dc08f0e8dc932630a4c.zip
merge upstream
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog11
-rw-r--r--test/automated/Makefile.in4
-rw-r--r--test/automated/eieio-test-methodinvoke.el4
-rw-r--r--test/automated/eieio-tests.el16
-rw-r--r--test/indent/ruby.rb5
5 files changed, 28 insertions, 12 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 969bc3c4939..7b39097d3b5 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,14 @@
12013-09-01 Glenn Morris <rgm@gnu.org>
2
3 * automated/Makefile.in (setwins): Avoid leading space in $wins.
4 Otherwise the sed command used by eg compile-main ends up
5 containing "/*.el". (Bug#15170)
6
72013-08-28 Paul Eggert <eggert@cs.ucla.edu>
8
9 * Makefile.in (SHELL): Now @SHELL@, not /bin/sh,
10 for portability to hosts where /bin/sh has problems.
11
12013-08-21 David Engster <deng@randomsample.de> 122013-08-21 David Engster <deng@randomsample.de>
2 13
3 * automated/eieio-tests.el, automated/eieio-test-persist.el: 14 * automated/eieio-tests.el, automated/eieio-test-persist.el:
diff --git a/test/automated/Makefile.in b/test/automated/Makefile.in
index d4bfcc12130..bf8e62f77cd 100644
--- a/test/automated/Makefile.in
+++ b/test/automated/Makefile.in
@@ -17,7 +17,7 @@
17# You should have received a copy of the GNU General Public License 17# You should have received a copy of the GNU General Public License
18# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. 18# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19 19
20SHELL = /bin/sh 20SHELL = @SHELL@
21 21
22srcdir = @srcdir@ 22srcdir = @srcdir@
23top_srcdir = @top_srcdir@ 23top_srcdir = @top_srcdir@
@@ -52,7 +52,7 @@ emacs = EMACSLOADPATH=$(lispsrc):$(test) LC_ALL=C $(EMACS) $(EMACSOPT)
52setwins=subdirs=`find . -type d -print`; \ 52setwins=subdirs=`find . -type d -print`; \
53 for file in $$subdirs; do \ 53 for file in $$subdirs; do \
54 case $$file in */.* | */.*/* | */=* | ./data* ) ;; \ 54 case $$file in */.* | */.*/* | */=* | ./data* ) ;; \
55 *) wins="$$wins $$file" ;; \ 55 *) wins="$$wins$${wins:+ }$$file" ;; \
56 esac; \ 56 esac; \
57 done 57 done
58 58
diff --git a/test/automated/eieio-test-methodinvoke.el b/test/automated/eieio-test-methodinvoke.el
index 76a28919f21..db8618c811e 100644
--- a/test/automated/eieio-test-methodinvoke.el
+++ b/test/automated/eieio-test-methodinvoke.el
@@ -1,4 +1,4 @@
1;;; eieio-testsinvoke.el -- eieio tests for method invokation 1;;; eieio-testsinvoke.el -- eieio tests for method invocation
2 2
3;; Copyright (C) 2005, 2008, 2010, 2013 Free Software Foundation, Inc. 3;; Copyright (C) 2005, 2008, 2010, 2013 Free Software Foundation, Inc.
4 4
@@ -136,7 +136,7 @@
136 (setq eieio-test-method-order-list (nreverse eieio-test-method-order-list)) 136 (setq eieio-test-method-order-list (nreverse eieio-test-method-order-list))
137 (eieio-test-match ans))) 137 (eieio-test-match ans)))
138 138
139;;; Test static invokation 139;;; Test static invocation
140;; 140;;
141(defmethod eitest-H :STATIC ((class eitest-A)) 141(defmethod eitest-H :STATIC ((class eitest-A))
142 "No need to do work in here." 142 "No need to do work in here."
diff --git a/test/automated/eieio-tests.el b/test/automated/eieio-tests.el
index 2d8ae4c7d43..144f0bc919d 100644
--- a/test/automated/eieio-tests.el
+++ b/test/automated/eieio-tests.el
@@ -21,7 +21,7 @@
21;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. 21;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22 22
23;;; Commentary: 23;;; Commentary:
24;; 24;;
25;; Test the various features of EIEIO. 25;; Test the various features of EIEIO.
26 26
27(require 'ert) 27(require 'ert)
@@ -66,7 +66,7 @@
66 :initform moose 66 :initform moose
67 :type symbol 67 :type symbol
68 :allocation :instance 68 :allocation :instance
69 :documentation "Fisrt slot testing slot arguments." 69 :documentation "First slot testing slot arguments."
70 :custom symbol 70 :custom symbol
71 :label "Wild Animal" 71 :label "Wild Animal"
72 :group borg 72 :group borg
@@ -166,7 +166,7 @@
166 (defun anormalfunction () "A plain function for error testing." nil) 166 (defun anormalfunction () "A plain function for error testing." nil)
167 (should-error 167 (should-error
168 (progn 168 (progn
169 (defgeneric anormalfunction () 169 (defgeneric anormalfunction ()
170 "Attempt to turn it into a generic."))) 170 "Attempt to turn it into a generic.")))
171 171
172 ;; Check that generic-p works 172 ;; Check that generic-p works
@@ -589,7 +589,7 @@ METHOD is the method that was attempting to be called."
589 ;;; HACK ALERT: The new value of a class slot is inherited by the 589 ;;; HACK ALERT: The new value of a class slot is inherited by the
590 ;; subclass! This is probably a bug. We should either share the slot 590 ;; subclass! This is probably a bug. We should either share the slot
591 ;; so sets on the baseclass change the subclass, or we should inherit 591 ;; so sets on the baseclass change the subclass, or we should inherit
592 ;; the original value. 592 ;; the original value.
593;; (should (eq (get-slot-3 eitest-t2) 'emu)) 593;; (should (eq (get-slot-3 eitest-t2) 'emu))
594;; (should (eq (get-slot-3 class-subc) 'emu)) 594;; (should (eq (get-slot-3 class-subc) 'emu))
595;; (setf (get-slot-3 eitest-t2) 'setf-emu) 595;; (setf (get-slot-3 eitest-t2) 'setf-emu)
@@ -604,7 +604,7 @@ METHOD is the method that was attempting to be called."
604 "Try to access slot-2 from this class which doesn't have it. 604 "Try to access slot-2 from this class which doesn't have it.
605The object S2 passed in will be of class prot-1, which does have 605The object S2 passed in will be of class prot-1, which does have
606the slot. This could be allowed, and currently is in EIEIO. 606the slot. This could be allowed, and currently is in EIEIO.
607Needed by the eieio persistant base class." 607Needed by the eieio persistent base class."
608 (oref s2 slot-2)) 608 (oref s2 slot-2))
609 609
610(defclass prot-1 (prot-0) 610(defclass prot-1 (prot-0)
@@ -662,7 +662,7 @@ Do not override for `prot-2'."
662 (prot0-slot-2 eitest-p1) 662 (prot0-slot-2 eitest-p1)
663 ;; Accessing private slot out of context must fail 663 ;; Accessing private slot out of context must fail
664 (should-error (oref eitest-p1 slot-3) :type 'invalid-slot-name) 664 (should-error (oref eitest-p1 slot-3) :type 'invalid-slot-name)
665 ;; Access private slot in ethod 665 ;; Access private slot in method
666 (prot1-slot-3 eitest-p1) 666 (prot1-slot-3 eitest-p1)
667 ;; Access private slot in subclass method must fail 667 ;; Access private slot in subclass method must fail
668 (should-error (prot1-slot-3 eitest-p2) :type 'invalid-slot-name) 668 (should-error (prot1-slot-3 eitest-p2) :type 'invalid-slot-name)
@@ -713,7 +713,7 @@ Do not override for `prot-2'."
713Subclasses to override slot attributes.") 713Subclasses to override slot attributes.")
714 714
715(defclass slotattr-ok (slotattr-base) 715(defclass slotattr-ok (slotattr-base)
716 ((initform :initform no-init) 716 ((initform :initform no-init)
717 (initarg :initarg :initblarg) 717 (initarg :initarg :initblarg)
718 (custom :custom string 718 (custom :custom string
719 :label "One String" 719 :label "One String"
@@ -767,7 +767,7 @@ Subclasses to override slot attributes.")
767Subclasses to override slot attributes.") 767Subclasses to override slot attributes.")
768 768
769(defclass slotattr-class-ok (slotattr-class-base) 769(defclass slotattr-class-ok (slotattr-class-base)
770 ((initform :initform no-init) 770 ((initform :initform no-init)
771 (initarg :initarg :initblarg) 771 (initarg :initarg :initblarg)
772 (custom :custom string 772 (custom :custom string
773 :label "One String" 773 :label "One String"
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
index 853f4dbf992..af1bbb9d8ab 100644
--- a/test/indent/ruby.rb
+++ b/test/indent/ruby.rb
@@ -66,3 +66,8 @@ end
66Given /toto/ do 66Given /toto/ do
67 print "hello" 67 print "hello"
68end 68end
69
70# Bug#15208
71if something == :==
72 do_something
73end