From dacc8d2149f9095d612d95ec8dfcf596681be18b Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 18 May 2010 16:30:11 +0200 Subject: merged makefile system with SMERP --- tests/library/test_loader.c | 4 +++- tests/library/testlib.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') 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; } -- cgit v1.2.3-54-g00ecf