-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: avoid sending signals in run_test.sh
Change run_test.sh and .bt script such that bpftrace terminates at the end of target test program. Compare the test output after bpftrace has terminated. Using kill -INT to stop bpftrace may interfere with CI environment, because this signal may be interpreted as a job failure. I tried bpftrace -c [1] to work around this, however it turned out to not work for these tests when there are tracepoints refering to dynamic libraries. This is because the .so is not loaded yet when bpftrace attempts to attach to the child process. [1] https://docs.bpftrace.org/latest#-c-command Signed-off-by: Ihor Solodrai <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters