X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Ffilesys.pure.lisp;h=09e770b7a5fdbed64f51751243fb512f12c4c449;hb=4a0ab5193096ca70dbbf43bb21418544f6d018b7;hp=0356cd55d8f1d284fecaecb961e55e1c315dd393;hpb=dccfa0f4e378a267744c03b1416accdf9d888987;p=sbcl.git diff --git a/tests/filesys.pure.lisp b/tests/filesys.pure.lisp index 0356cd5..09e770b 100644 --- a/tests/filesys.pure.lisp +++ b/tests/filesys.pure.lisp @@ -35,3 +35,11 @@ (search "tests/filesys.pure.lisp" (namestring pathname))) dir))) + +;;; ANSI: FILE-LENGTH should signal an error of type TYPE-ERROR if +;;; stream is not a stream associated with a file. +;;; +;;; (Peter Van Eynde's ansi-test suite caught this, and Eric Marsden +;;; reported a fix for CMU CL, which was ported to sbcl-0.6.12.35.) +(assert (typep (nth-value 1 (ignore-errors (file-length *terminal-io*))) + 'type-error))