1 USING: accessors alien alien.libraries alien.syntax kernel tools.test ;
2 IN: alien.libraries.tests
4 { f } [ DLL" fadfasdfsada" dll-valid? ] unit-test
6 { f } [ "does not exist" DLL" fadsfasfdsaf" dlsym ] unit-test
8 { } [ "doesnotexist" dlopen dlclose ] unit-test
10 [ "fdasfsf" dll-valid? drop ] must-fail
13 "test-library" "blah" cdecl add-library
14 "test-library" "BLAH" cdecl add-library?
19 "test-library" "blah" cdecl add-library
20 "test-library" "blah" stdcall add-library?
25 "test-library" "blah" cdecl add-library
26 "test-library" "blah" cdecl add-library?
31 "blah" cdecl make-library [ path>> ] [ dll>> dll-valid? ] bi
36 "err_no" "factor" dlsym? alien?