summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/library/test_loader.c4
-rw-r--r--tests/library/testlib.c2
2 files changed, 4 insertions, 2 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;
}
diff --git a/tests/library/testlib.c b/tests/library/testlib.c
index 14c9efc..ee97b87 100644
--- a/tests/library/testlib.c
+++ b/tests/library/testlib.c
@@ -1,3 +1,3 @@
-int wolf_f( int a ) {
+int multiply_by_two( int a ) {
return a * 2;
}