test: locate the fuzz sweep in the build tree

fuzz-msg-parse.sh looked for its driver next to the script, which only
holds when srcdir and builddir are the same.  Every VPATH build skipped
the sweep, claiming D-Bus was off:

    SKIP: fuzz-msg-parse.sh

distcheck, and with it the release job, is a VPATH build.  Use
top_builddir, which the test environment already exports.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2026-08-29 13:54:13 +02:00
1 parent 2b812101be
commit 969f9a112c
1 file changed
+1 -1
+1 -1
View File
@@ -10,7 +10,7 @@
set -eu
TEST_DIR=$(dirname "$0")
DRIVER="$TEST_DIR/src/fuzz-msg-parse"
DRIVER="${top_builddir:-$TEST_DIR/..}/test/src/fuzz-msg-parse"
[ -x "$DRIVER" ] || {
echo "fuzz-msg-parse not built, D-Bus support is off"