2013-12-21 00:07:31 -05:00
|
|
|
USING: alien alien.libraries alien.syntax tools.test kernel ;
|
2009-08-13 20:21:44 -04:00
|
|
|
IN: alien.libraries.tests
|
2009-07-09 07:51:31 -04:00
|
|
|
|
2015-07-02 20:28:17 -04:00
|
|
|
{ f } [ DLL" fadfasdfsada" dll-valid? ] unit-test
|
2009-07-09 07:51:31 -04:00
|
|
|
|
2015-07-02 20:28:17 -04:00
|
|
|
{ f } [ "does not exist" DLL" fadsfasfdsaf" dlsym ] unit-test
|
2009-07-09 07:51:31 -04:00
|
|
|
|
2015-07-02 20:28:17 -04:00
|
|
|
{ } [ "doesnotexist" dlopen dlclose ] unit-test
|
2009-07-09 07:51:31 -04:00
|
|
|
|
2009-08-13 20:21:44 -04:00
|
|
|
[ "fdasfsf" dll-valid? drop ] must-fail
|
2010-10-26 00:39:15 -04:00
|
|
|
|
2015-07-02 20:28:17 -04:00
|
|
|
{ t } [
|
2010-10-26 00:39:15 -04:00
|
|
|
"test-library" "blah" cdecl add-library
|
|
|
|
"test-library" "BLAH" cdecl add-library?
|
|
|
|
"blah" remove-library
|
|
|
|
] unit-test
|
|
|
|
|
2015-07-02 20:28:17 -04:00
|
|
|
{ t } [
|
2010-10-26 00:39:15 -04:00
|
|
|
"test-library" "blah" cdecl add-library
|
|
|
|
"test-library" "blah" stdcall add-library?
|
|
|
|
"blah" remove-library
|
|
|
|
] unit-test
|
|
|
|
|
2015-07-02 20:28:17 -04:00
|
|
|
{ f } [
|
2010-10-26 00:39:15 -04:00
|
|
|
"test-library" "blah" cdecl add-library
|
|
|
|
"test-library" "blah" cdecl add-library?
|
|
|
|
"blah" remove-library
|
|
|
|
] unit-test
|