r5501: Auto commit for Debian build
[uffi.git] / tests / foreign-var.lisp
index 52bceb159221330f1d5e03eaaaf1f8cb7133da4e..af072c4fec884f1b0f4ac72942f198362e3afc02 100644 (file)
@@ -4,10 +4,10 @@
 ;;;;
 ;;;; Name:          foreign-var
 ;;;; Purpose:       Tests of foreign variables
-;;;; Programmer:    Kevin M. Rosenberg
+;;;; Authors:       Kevin M. Rosenberg and Edi Weitz
 ;;;; Date Started:  Aug 2003
 ;;;;
-;;;; $Id: foreign-var.lisp,v 1.3 2003/08/15 02:34:34 kevin Exp $
+;;;; $Id: foreign-var.lisp,v 1.4 2003/08/15 02:50:24 kevin Exp $
 ;;;;
 ;;;; *************************************************************************
 
        (setf *fvar-addend* orig)))
   48)
 
-;;(decf (uffi:get-slot-value *fvar-struct* 'fvar-struct 'i) 10)
-;;(deftest fvarst.8 (fvar-struct-int) 38)
+(deftest fvarst.8 
+    (let ((orig (uffi:get-slot-value *fvar-struct* 'fvar-struct 'i)))
+      (decf (uffi:get-slot-value *fvar-struct* 'fvar-struct 'i) 10)
+      (prog1
+         (fvar-struct-int)
+       (setf (uffi:get-slot-value *fvar-struct* 'fvar-struct 'i) orig)))
+  35)