X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fgetenv.lisp;h=51bb6ca070c473df19a991b943035a911ecf7fdf;hb=0824453227a26da41a3929c9117b66714980414b;hp=0a64fc4eccbe12b6f5e6afd65e1ae0476724fbdc;hpb=52f19d7be553ed2701e085dc084662b8b8e11797;p=uffi.git diff --git a/tests/getenv.lisp b/tests/getenv.lisp index 0a64fc4..51bb6ca 100644 --- a/tests/getenv.lisp +++ b/tests/getenv.lisp @@ -2,21 +2,18 @@ ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; -;;;; Name: getenv.cl +;;;; Name: getenv.lisp ;;;; Purpose: UFFI Example file to get environment variable ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: getenv.lisp,v 1.3 2003/05/01 23:31:40 kevin Exp $ +;;;; $Id$ ;;;; -;;;; 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 ;;;; -;;;; UFFI users are granted the rights to distribute and use this software -;;;; as governed by the terms of the Lisp Lesser GNU Public License -;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ************************************************************************* -(in-package :uffi-tests) +(in-package #:uffi-tests) (uffi:def-function ("getenv" c-getenv) @@ -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")