Skip to content

Commit

Permalink
Make liblttng-ust_sys-sdt.h pass when lttng is not installed
Browse files Browse the repository at this point in the history
The lttng-ust dependency is technically optional. If .NET is installed
and that dependency isn't, assume .NET is okay.
  • Loading branch information
omajid committed Sep 19, 2024
1 parent 0f39bca commit 076784d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions liblttng-ust_sys-sdt.h/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ if [[ "${#packageNames[@]}" == 0 ]]; then
esac
fi

if [[ "${#packageNames[@]}" == 0 ]]; then
echo "No lttng-package found: PASS"
exit 0
fi

case $RUNTIME_ID in
alpine*)
filePath="/$(apk info -L "${packageNames[@]}" | grep -E 'liblttng-ust.so.[01]$')"
Expand Down

0 comments on commit 076784d

Please sign in to comment.