From 864cd6ee183952d233da889147f0b419ecd8989d Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 17 May 2010 22:45:50 +0200 Subject: added more documentation and dlopen/dlclose, must backport shared library building from SMERP first --- tests/library/test_loader.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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 ); -- cgit v1.2.3-54-g00ecf