X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fstructs.lisp;h=8518eeca22073c7b3d6963af3cee99768e3582dc;hb=b2a3a6e6f3e5adf857ba4e2c80b8e4f8a3124a33;hp=1522a15f04110456cf649245086ac9045a6dd276;hpb=65e2a75247b894d1f562102ef1df77c7060b5048;p=uffi.git diff --git a/tests/structs.lisp b/tests/structs.lisp index 1522a15..8518eec 100644 --- a/tests/structs.lisp +++ b/tests/structs.lisp @@ -3,13 +3,13 @@ ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: structs.lisp -;;;; Purpose: UFFI Example file to strtol, uses pointer arithmetic +;;;; Purpose: Test file for UFFI structures ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: structs.lisp,v 1.1 2003/08/13 18:53:42 kevin Exp $ +;;;; $Id: structs.lisp,v 1.2 2003/08/14 19:35:05 kevin Exp $ ;;;; -;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg +;;;; This file, part of UFFI, is Copyright (c) 2002-2003 by Kevin M. Rosenberg ;;;; ;;;; ************************************************************************* @@ -23,12 +23,9 @@ (uffi:def-foreign-type foo-ptr (* foo)) -(uffi:def-function "baz" - ((x :int)) - :returning foo-ptr - :module "frob") - -(defun test () +;; tests that compilation worked +(deftest structs.1 (with-foreign-object (p 'foo) - (baz p))) + t) + t)