Mercurial > pub > dyncall > dyncall
diff test/thunk/test_thunk.c @ 203:3999750fae28
- allocwx changes from last commit mentioned in Changelog and adapted testcode
author | Tassilo Philipp |
---|---|
date | Tue, 21 Mar 2017 02:31:55 +0100 |
parents | ff0c8ee2bbc7 |
children | f5577f6bf97a |
line wrap: on
line diff
--- a/test/thunk/test_thunk.c Mon Mar 20 23:12:58 2017 +0100 +++ b/test/thunk/test_thunk.c Tue Mar 21 02:31:55 2017 +0100 @@ -98,6 +98,12 @@ return; } dcbInitThunk(p, &my_entry); + err = dcInitExecWX((void*)p, sizeof(DCThunk)); + if(err) { + dcFreeWX((void*)p, sizeof(DCThunk)); + printf("0\n"); + return; + } fp = (printfun*)p; if(setjmp(jbuf) != 0) printf("sigsegv\n");