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, 3 insertions, 1 deletions
diff --git a/tests/library/test_loader.c b/tests/library/test_loader.c
index d2b9329..fd07ed4 100644
--- a/tests/library/test_loader.c
+++ b/tests/library/test_loader.c
@@ -23,10 +23,12 @@
int main( void ) {
wolf_library_p library;
wolf_error_t error;
+ char errbuf[512];
library = wolf_library_load( "testlib.so", &error );
if( library == NULL ) {
- fprintf( stderr, "Error loading the library: %d\n", error );
+ fprintf( stderr, "Error loading the library: %s (%d)\n",
+ wolf_libary_errmsg( error, library, errbuf, 512 ), error );
return EXIT_FAILURE;
}