Mercurial > hg > xemacs-beta
comparison tests/automated/file-tests.el @ 5125:b5df3737028a ben-lisp-object
merge
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Wed, 24 Feb 2010 01:58:04 -0600 |
parents | 8b230c53075b |
children | 0f66906b6e37 |
comparison
equal
deleted
inserted
replaced
5124:623d57b7fbe8 | 5125:b5df3737028a |
---|---|
1 ;;; file-tests.el --- test support for filesystem primitives | |
2 | |
3 ;; Copyright (C) 2010 Ben Wing. | |
4 | |
5 ;; Author: Ben Wing <ben@xemacs.org> | |
6 ;; Maintainer: Ben Wing <ben@xemacs.org> | |
7 ;; Created: 2010 January 25 | |
8 ;; Keywords: files, filenames, file names | |
9 | |
10 ;; This file is part of XEmacs. | |
11 | |
12 ;; XEmacs is free software; you can redistribute it and/or modify it | |
13 ;; under the terms of the GNU General Public License as published by | |
14 ;; the Free Software Foundation; either version 2, or (at your option) | |
15 ;; any later version. | |
16 | |
17 ;; XEmacs is distributed in the hope that it will be useful, but | |
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
20 ;; General Public License for more details. | |
21 | |
22 ;; You should have received a copy of the GNU General Public License | |
23 ;; along with XEmacs; see the file COPYING. If not, write to the Free | |
24 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
25 ;; 02111-1307, USA. | |
26 | |
27 ;;; Synched up with: Not in FSF. | |
28 | |
29 ;;; Commentary: | |
30 | |
31 ;; Test file-system support. Opening files, file names, etc. | |
32 ;; See test-harness.el for instructions on how to run these tests. | |
33 | |
34 ;; Test that `file-truename' is idempotent (same value when called multiple | |
35 ;; times). Under Cygwin 1.7 as of 1-24-10, not true! | |
36 (loop for file in (list (temp-directory) | |
37 (file-name-as-directory (temp-directory)) | |
38 "/" | |
39 (file-name-as-directory "/") | |
40 (make-temp-name "foo") | |
41 ) | |
42 do | |
43 (Assert-equal (file-truename (file-truename file)) (file-truename file))) | |
44 | |
45 |