X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=tests%2F07-dynlink-globalvar.test;fp=tests%2F07-dynlink-globalvar.test;h=227bc91962cd551f881dd49fc5ae096188b64ed4;hb=8df7b5caba6d0c8909fe9e637544be0b1555531c;hp=34970f5056b48a72ce1e6153ccf95f902aefb943;hpb=d0eb1cc5d50fd7355028d338f71a98609a0c1520;p=centaur.git diff --git a/tests/07-dynlink-globalvar.test b/tests/07-dynlink-globalvar.test index 34970f5..227bc91 100644 --- a/tests/07-dynlink-globalvar.test +++ b/tests/07-dynlink-globalvar.test @@ -1,4 +1,11 @@ #!/bin/sh + +# 1. Inject a freshly built object file into a fresh executable. +# Both use a dynamically loaded function and global variable. +# 2. Detour execution from a function in the executable to a function +# originating from the object file. +# 3. Check if the new executable prints the expected changed output. + source ./boilerplate.sh elfucli --input $BUILDDIR/putsmainsubglobal \