X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fgetenv.lisp;h=4146b3b0d8c196147f5f9ec315abd241e539a0a6;hb=c4533c02d3f2ebd53178c93de2dee09ca39fe0e7;hp=6fafc45e2c370ad2e67a878cb921599b522175dc;hpb=7004c2691d5695471c7bce9d62b82a1914cf05a2;p=uffi.git diff --git a/tests/getenv.lisp b/tests/getenv.lisp index 6fafc45..4146b3b 100644 --- a/tests/getenv.lisp +++ b/tests/getenv.lisp @@ -9,7 +9,7 @@ ;;;; ;;;; $Id$ ;;;; -;;;; This file, part of UFFI, is Copyright (c) 2002-2003 by Kevin M. Rosenberg +;;;; This file, part of UFFI, is Copyright (c) 2002-2005 by Kevin M. Rosenberg ;;;; ;;;; ************************************************************************* @@ -18,19 +18,16 @@ (uffi:def-function ("getenv" c-getenv) ((name :cstring)) - :module "c" :returning :cstring) (uffi:def-function ("setenv" c-setenv) ((name :cstring) (value :cstring) (overwrite :int)) - :module "c" :returning :int) (uffi:def-function ("unsetenv" c-unsetenv) ((name :cstring)) - :module "c" :returning :void) (defun my-getenv (key) @@ -54,11 +51,11 @@ (uffi:with-cstrings ((key-native key)) (c-unsetenv key-native))) -(deftest getenv.1 (progn +(deftest :getenv.1 (progn (my-unsetenv "__UFFI_FOO1__") (my-getenv "__UFFI_FOO1__")) nil) -(deftest getenv.2 (progn +(deftest :getenv.2 (progn (my-setenv "__UFFI_FOO1__" "UFFI-TEST") (my-getenv "__UFFI_FOO1__")) "UFFI-TEST")