X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fgetenv.lisp;h=4146b3b0d8c196147f5f9ec315abd241e539a0a6;hb=093110cc904383694a1b549cf3525cc7088e92e1;hp=aae7317fd25beb4be2be6aefdf26e83287e3178c;hpb=bdb966b22ea563a7dfa1f464a1b6cb6d8b5a712c;p=uffi.git diff --git a/tests/getenv.lisp b/tests/getenv.lisp index aae7317..4146b3b 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.2 2003/04/29 14:08:02 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-2005 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,14 @@ (uffi:with-cstrings ((key-native key)) (c-unsetenv key-native))) -(deftest getenv.1 (my-getenv "__UFFI_FOO1__") nil) -(deftest setenv.1 (my-setenv "__UFFI_FOO1__" "UFFI-TEST") 0) -(deftest getenv.2 (my-getenv "__UFFI_FOO1__") "UFFI-TEST") -(deftest setenv.2 (my-unsetenv "__UFFI_FOO1__") nil) -(deftest getenv.3 (my-getenv "__UFFI_FOO1__") nil) +(deftest :getenv.1 (progn + (my-unsetenv "__UFFI_FOO1__") + (my-getenv "__UFFI_FOO1__")) + nil) +(deftest :getenv.2 (progn + (my-setenv "__UFFI_FOO1__" "UFFI-TEST") + (my-getenv "__UFFI_FOO1__")) + "UFFI-TEST")