summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2010-05-18 17:03:31 +0200
committerAndreas Baumann <abaumann@yahoo.com>2010-05-18 17:03:31 +0200
commitb1a673c0a7ab8669e5c814979ab07b893efd9d50 (patch)
tree46b8122e855d492a7d98d4ed8650950827aca0c5 /tests
parent150f99b09f9ecb5c837c5c184641c0b2aecf7a36 (diff)
downloadwolfbones-b1a673c0a7ab8669e5c814979ab07b893efd9d50.tar.gz
wolfbones-b1a673c0a7ab8669e5c814979ab07b893efd9d50.tar.bz2
first proper error handling for loader
Diffstat (limited to 'tests')
-rw-r--r--tests/library/test_loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/library/test_loader.c b/tests/library/test_loader.c
index fd07ed4..f6f78dd 100644
--- a/tests/library/test_loader.c
+++ b/tests/library/test_loader.c
@@ -26,7 +26,7 @@ int main( void ) {
char errbuf[512];
library = wolf_library_load( "testlib.so", &error );
- if( library == NULL ) {
+ if( error != WOLF_OK ) {
fprintf( stderr, "Error loading the library: %s (%d)\n",
wolf_libary_errmsg( error, library, errbuf, 512 ), error );
return EXIT_FAILURE;