summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2010-05-17 22:45:50 +0200
committerAndreas Baumann <abaumann@yahoo.com>2010-05-17 22:45:50 +0200
commit864cd6ee183952d233da889147f0b419ecd8989d (patch)
treee1f6aec1aa8a39c0b7aa64d1fca1567cb1516dea /tests
parentc20ee22f7e0f45d0d025e937877f11132fad6327 (diff)
downloadwolfbones-864cd6ee183952d233da889147f0b419ecd8989d.tar.gz
wolfbones-864cd6ee183952d233da889147f0b419ecd8989d.tar.bz2
added more documentation and dlopen/dlclose, must backport shared library building from SMERP first
Diffstat (limited to 'tests')
-rw-r--r--tests/library/test_loader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/library/test_loader.c b/tests/library/test_loader.c
index ac4f79c..d2b9329 100644
--- a/tests/library/test_loader.c
+++ b/tests/library/test_loader.c
@@ -25,6 +25,10 @@ int main( void ) {
wolf_error_t error;
library = wolf_library_load( "testlib.so", &error );
+ if( library == NULL ) {
+ fprintf( stderr, "Error loading the library: %d\n", error );
+ return EXIT_FAILURE;
+ }
wolf_library_unload( library );