blob: c46ef2f5ca4469a0205b6d1a322826c89435a076 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
source ./boilerplate.sh
elfucli --input $BUILDDIR/putsmainsub \
--reladd $BUILDDIR/puts_noarg.o \
--detour sub,puts_noarg \
--output $BUILDDIR/putsmainsub-with-puts-noarg-detour
test_check_retval
$BUILDDIR/putsmainsub-with-puts-noarg-detour | grep -q "puts_noarg() is returning."
test_check_retval
|