Skip to content

Commit

Permalink
test: usdt: multitrace: wipe out parsed commits properly
Browse files Browse the repository at this point in the history
One of the things test/unittest/usdt/tst.multitrace.sh is trying to do is
verify that dtprobed's reparsing of wrong-version parsed DOF works right.
It does this by overwriting the parsed DOF with junk (which corresponds to a
definitely-wrong version) and letting it reparse it.

Unfortunately after the revamp to put the parsed DOF in multiple files,
the test was never adjusted, so it's failing to wipe out the parsed
commits and this never got properly tested since then.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
  • Loading branch information
nickalcock authored and kvanhees committed Mar 4, 2024
1 parent 936683c commit 800f105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unittest/usdt/tst.multitrace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ ONE=$!
# a failure if it simply doesn't reparse at all.
if [[ $dtrace != "/usr/sbin/dtrace" ]] && [[ -n $dtprobed_pid ]]; then
sleep 1
for parsed in $DTRACE_OPT_DOFSTASHPATH/stash/dof-pid/*/*/parsed; do
for parsed in $DTRACE_OPT_DOFSTASHPATH/stash/dof-pid/*/*/parsed/*; do
echo 'a' > $parsed
done
kill -USR2 $dtprobed_pid
Expand Down

0 comments on commit 800f105

Please sign in to comment.