X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fforeign-loader.lisp;h=208307895a37363c28e6ddaccf439e10b5054c95;hb=1e5809bc5e68d9f1f5a676fa24253b3b95d490ac;hp=a611f8831d687ea86fb57e00069e8f89f9e72c57;hpb=ebedde4e67b858b1f65c5eb4dc7bc45978ed1e40;p=uffi.git diff --git a/tests/foreign-loader.lisp b/tests/foreign-loader.lisp index a611f88..2083078 100644 --- a/tests/foreign-loader.lisp +++ b/tests/foreign-loader.lisp @@ -9,7 +9,7 @@ ;;;; ;;;; $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 ;;;; ;;;; ************************************************************************* @@ -18,6 +18,8 @@ (in-package uffi-tests) +#+clisp (uffi:load-foreign-library "/usr/lib/libz.so" :module "z") +#-clisp (unless (uffi:load-foreign-library (uffi:find-foreign-library #-(or macosx darwin) @@ -25,17 +27,21 @@ #+(or macosx darwin) "z" (list (pathname-directory *load-pathname*) - "/usr/local/lib/" "/usr/lib/" "/zlib/")) - :module "zlib" + "/usr/local/lib/" #+(or 64bit x86-64) "/usr/lib64/" + "/usr/lib/" "/zlib/")) + :module "zlib" :supporting-libraries '("c")) (warn "Unable to load zlib")) - -(unless (uffi:load-foreign-library + +#+clisp (uffi:load-foreign-library "/home/kevin/debian/src/uffi/tests/uffi-c-test.so" :module "uffi_tests") +#-clisp +(unless (uffi:load-foreign-library (uffi:find-foreign-library - "uffi-c-test-lib" + '(#+(or 64bit x86-64) "uffi-c-test64" "uffi-c-test") (list (pathname-directory *load-truename*) - "/usr/lib/uffi/")) + "/usr/lib/uffi/" + "/home/kevin/debian/src/uffi/tests/")) :supporting-libraries '("c") :module "uffi_tests") - (warn "Unable to load uffi-c-test-lib library")) + (warn "Unable to load uffi-c-test library"))