summaryrefslogtreecommitdiff
path: root/tests/library/test_loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/library/test_loader.c')
-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 );