summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2010-05-19 09:04:45 +0200
committerAndreas Baumann <abaumann@yahoo.com>2010-05-19 09:04:45 +0200
commitab8539e23ba891f966747b98d49a8ab5001e0245 (patch)
tree6c6c6834cc1f72eaf54d8054fd2c2af6ab79fd89 /tests
parent88221f3b5fb7f2d824e367bf565b71640dedc8f9 (diff)
downloadwolfbones-ab8539e23ba891f966747b98d49a8ab5001e0245.tar.gz
wolfbones-ab8539e23ba891f966747b98d49a8ab5001e0245.tar.bz2
cleaned up
Diffstat (limited to 'tests')
-rw-r--r--tests/library/test_loader.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/library/test_loader.c b/tests/library/test_loader.c
index 7e5fa28..a76b093 100644
--- a/tests/library/test_loader.c
+++ b/tests/library/test_loader.c
@@ -41,14 +41,15 @@ int main( void ) {
/* fetch a known function symbol (multiply_by_two), for the reasons why naive
* casting doesn't work, see:
- * http://en.wikipedia.org/wiki/Dynamic_loading#cite_note-gcc-strict-aliasing-5 */
+ * http://en.wikipedia.org/wiki/Dynamic_loading
+ */
symbol = wolf_library_get( library, "multiply_by_two", &error );
alias.obj = symbol;
func = alias.func;
/* call it */
- res = func( 2 );
- assert( res == 4 );
+ res = func( 7 );
+ assert( res == 14 );
/* close library */
error = wolf_library_unload( library );