Mercurial > hg > xemacs-beta
annotate tests/automated/c-tests.el @ 5234:53b88477345d
Fix up FSF's Franklin Street address in number.h.
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Sun, 13 Jun 2010 21:21:00 +0900 |
parents | 6bff4f219697 |
children | 308d34e9f07d |
rev | line source |
---|---|
404 | 1 ;; Copyright (C) 2000 Martin Buchholz |
5156
6bff4f219697
fix crash etc. in tests.c/c-tests.el
Ben Wing <ben@xemacs.org>
parents:
4747
diff
changeset
|
2 ;; Copyright (C) 2010 Ben Wing. |
404 | 3 |
4 ;; Author: Martin Buchholz <martin@xemacs.org> | |
5 ;; Maintainer: Martin Buchholz <martin@xemacs.org> | |
6 ;; Created: 1998 | |
7 ;; Keywords: tests | |
8 | |
9 ;; This file is part of XEmacs. | |
10 | |
11 ;; XEmacs is free software; you can redistribute it and/or modify it | |
12 ;; under the terms of the GNU General Public License as published by | |
13 ;; the Free Software Foundation; either version 2, or (at your option) | |
14 ;; any later version. | |
15 | |
16 ;; XEmacs is distributed in the hope that it will be useful, but | |
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
19 ;; General Public License for more details. | |
20 | |
21 ;; You should have received a copy of the GNU General Public License | |
22 ;; along with XEmacs; see the file COPYING. If not, write to the Free | |
23 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
24 ;; 02111-1307, USA. | |
25 | |
26 ;;; Synched up with: Not in FSF. | |
27 | |
28 ;;; Commentary: | |
29 | |
30 ;;; Call tests in src/tests.c, which cannot be written using lisp only. | |
31 ;;; See test-harness.el for instructions on how to run these tests. | |
32 | |
33 (eval-when-compile | |
34 (condition-case nil | |
35 (require 'test-harness) | |
36 (file-error | |
37 (push "." load-path) | |
38 (when (and (boundp 'load-file-name) (stringp load-file-name)) | |
39 (push (file-name-directory load-file-name) load-path)) | |
40 (require 'test-harness)))) | |
41 | |
5156
6bff4f219697
fix crash etc. in tests.c/c-tests.el
Ben Wing <ben@xemacs.org>
parents:
4747
diff
changeset
|
42 (with-temp-buffer |
6bff4f219697
fix crash etc. in tests.c/c-tests.el
Ben Wing <ben@xemacs.org>
parents:
4747
diff
changeset
|
43 (when (boundp 'test-function-list) ; Only if configure --debug |
6bff4f219697
fix crash etc. in tests.c/c-tests.el
Ben Wing <ben@xemacs.org>
parents:
4747
diff
changeset
|
44 (loop for fun in test-function-list do |
6bff4f219697
fix crash etc. in tests.c/c-tests.el
Ben Wing <ben@xemacs.org>
parents:
4747
diff
changeset
|
45 ;; #### I hope there's no way we can signal ... |
6bff4f219697
fix crash etc. in tests.c/c-tests.el
Ben Wing <ben@xemacs.org>
parents:
4747
diff
changeset
|
46 (loop for result in (funcall fun) do |
6bff4f219697
fix crash etc. in tests.c/c-tests.el
Ben Wing <ben@xemacs.org>
parents:
4747
diff
changeset
|
47 (Assert (nth 1 result) (nth 2 result) (nth 0 result)))))) |