Fixes for watchpoint probes and runtime tests #3161
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix two issues with watchpoint probes/tests introduced by recent PRs:
EXPECT
clauses for watchpoint runtime tests,The reason why neither of these was captured is a strange issue in CMake. During CMake run, we copy files from
tests/runtime/
tobuild/tests/runtime
, however, the last file (in our casetests/runtime/watchpoint
) is never copied. Due to this, watchpoint tests are not run in the CI and also do not get updated in local builds (it seems to have worked in the past b/c I had the file in my build directory but it was never updated).I'm not sure if this is caused by our change or by a CMake update, however, our approach is IMHO not correct as it makes the
runtime_tests
target depend on the runtime tests files from the source directory. Changing it to depend on the (newly copied) files from the build directory eliminates the above issue. This is done by the last commit in the PR.Checklist
man/adoc/bpftrace.adoc
CHANGELOG.md