X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-cover%2Ftests.lisp;h=ea54b7537680fe9e354673714441afd61ef9e5aa;hb=b9691ef5009d3669c4f87f4dfbd2baf4538e60f8;hp=d7aa13437d7961c4b96d66d9a7e0e2bc10b319b8;hpb=b210be3c2d3ab340c7b5636df250f1c1c9828436;p=sbcl.git diff --git a/contrib/sb-cover/tests.lisp b/contrib/sb-cover/tests.lisp index d7aa134..ea54b75 100644 --- a/contrib/sb-cover/tests.lisp +++ b/contrib/sb-cover/tests.lisp @@ -28,11 +28,18 @@ (load (compile-file (merge-pathnames #p"test-data-1.lisp" *path*))) (report-expect-failure) -;;; Instrument the file, try again +;;; Instrument the file, try again -- first with a non-directory pathname (proclaim '(optimize sb-cover:store-coverage-data)) (load (compile-file (merge-pathnames #p"test-data-1.lisp" *path*))) +(catch 'ok + (handler-case + (sb-cover:report #p"/tmp/foo") + (error () + (throw 'ok nil))) + (error "REPORT with a non-pathname directory did not signal an error.")) + (report) (assert (probe-file (make-pathname :name "cover-index" :type "html"