summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2010-05-18 16:30:11 +0200
committerAndreas Baumann <abaumann@yahoo.com>2010-05-18 16:30:11 +0200
commitdacc8d2149f9095d612d95ec8dfcf596681be18b (patch)
tree1220c641c4942c338fe6eef992f1700620a63cfa /tests
parent0f8614c42aacb4f0b47fa843541281be97b8a574 (diff)
downloadwolfbones-dacc8d2149f9095d612d95ec8dfcf596681be18b.tar.gz
wolfbones-dacc8d2149f9095d612d95ec8dfcf596681be18b.tar.bz2
merged makefile system with SMERP
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;
}