X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=tests%2F07-dynlink-globalvar.test;fp=tests%2F07-dynlink-globalvar.test;h=34970f5056b48a72ce1e6153ccf95f902aefb943;hb=271685c3f3a15eca33ad563c1b051bdb32ca2726;hp=0000000000000000000000000000000000000000;hpb=6004cb3888eaac4995025fdba5f71b7fd861d81a;p=centaur.git diff --git a/tests/07-dynlink-globalvar.test b/tests/07-dynlink-globalvar.test new file mode 100644 index 0000000..34970f5 --- /dev/null +++ b/tests/07-dynlink-globalvar.test @@ -0,0 +1,11 @@ +#!/bin/sh +source ./boilerplate.sh + +elfucli --input $BUILDDIR/putsmainsubglobal \ + --reladd $BUILDDIR/sub_with_global.o \ + --detour sub,sub_with_global \ + --output $BUILDDIR/putsmainsubglobal-with-sub-with-global-detour +test_check_retval + +$BUILDDIR/putsmainsubglobal-with-sub-with-global-detour | grep -q "sub_with_global() is returning." +test_check_retval