|
63 | 63 | DYLIB="$PWD/target/aarch64-apple-darwin/debug/examples/libinstrument_unhook_restore.dylib" |
64 | 64 | OUT=$(DYLD_INSERT_LIBRARIES="$DYLIB" examples/instrument_unhook_restore/app) |
65 | 65 | echo "$OUT" |
| 66 | + [[ "$OUT" == *"hooked_calc(3, 4) = 123"* ]] |
66 | 67 | [[ "$OUT" == *"calc(3, 4) = 7"* ]] |
67 | 68 |
|
68 | 69 | cc -O0 -fno-inline examples/inline_hook_far/target.c -o examples/inline_hook_far/app |
@@ -137,6 +138,7 @@ jobs: |
137 | 138 | DYLIB="$PWD/target/x86_64-apple-darwin/debug/examples/libinstrument_unhook_restore.dylib" |
138 | 139 | OUT=$(DYLD_INSERT_LIBRARIES="$DYLIB" examples/instrument_unhook_restore/app) |
139 | 140 | echo "$OUT" |
| 141 | + [[ "$OUT" == *"hooked_calc(3, 4) = 123"* ]] |
140 | 142 | [[ "$OUT" == *"calc(3, 4) = 7"* ]] |
141 | 143 |
|
142 | 144 | cc -O0 -fno-inline examples/inline_hook_far/target.c -o examples/inline_hook_far/app |
@@ -201,6 +203,13 @@ jobs: |
201 | 203 | echo "$OUT" |
202 | 204 | [[ "$OUT" == *"calc(4, 5) = 99"* ]] |
203 | 205 |
|
| 206 | + cc -O0 -fno-inline -rdynamic examples/instrument_unhook_restore/target.c -o examples/instrument_unhook_restore/app |
| 207 | + SO="$PWD/target/x86_64-unknown-linux-gnu/debug/examples/libinstrument_unhook_restore.so" |
| 208 | + OUT=$(LD_PRELOAD="$SO" examples/instrument_unhook_restore/app) |
| 209 | + echo "$OUT" |
| 210 | + [[ "$OUT" == *"hooked_calc(3, 4) = 123"* ]] |
| 211 | + [[ "$OUT" == *"calc(3, 4) = 7"* ]] |
| 212 | +
|
204 | 213 | cc -O0 -fno-inline -rdynamic examples/inline_hook_far/target.c -o examples/inline_hook_far/app |
205 | 214 | SO="$PWD/target/x86_64-unknown-linux-gnu/debug/examples/libinline_hook_far.so" |
206 | 215 | OUT=$(LD_PRELOAD="$SO" examples/inline_hook_far/app) |
@@ -273,6 +282,7 @@ jobs: |
273 | 282 | SO="$PWD/target/aarch64-unknown-linux-gnu/debug/examples/libinstrument_unhook_restore.so" |
274 | 283 | OUT=$(LD_PRELOAD="$SO" examples/instrument_unhook_restore/app) |
275 | 284 | echo "$OUT" |
| 285 | + [[ "$OUT" == *"hooked_calc(3, 4) = 123"* ]] |
276 | 286 | [[ "$OUT" == *"calc(3, 4) = 7"* ]] |
277 | 287 |
|
278 | 288 | cc -O0 -fno-inline -rdynamic examples/instrument_adrp_no_original/target.c -o examples/instrument_adrp_no_original/app |
|
0 commit comments