fix builddir
diff --git a/tests/tests-randomized/Makefile.am b/tests/tests-randomized/Makefile.am
index f6a04e2..99267a1 100644
--- a/tests/tests-randomized/Makefile.am
+++ b/tests/tests-randomized/Makefile.am
@@ -20,7 +20,7 @@
FUZZ_TIME="${FUZZ_TIME}" \
ASAN_ENV_FLAGS="@ASAN_ENV_FLAGS@" \
srcdir=${srcdir} \
- builddir=${builddir} \
+ abs_builddir=${abs_builddir} \
abs_top_srcdir=${abs_top_srcdir} \
abs_top_builddir=${abs_top_builddir} \
${srcdir}/check-bundles.sh
diff --git a/tests/tests-randomized/check-bundles.sh b/tests/tests-randomized/check-bundles.sh
index abf439c..5cf892f 100755
--- a/tests/tests-randomized/check-bundles.sh
+++ b/tests/tests-randomized/check-bundles.sh
@@ -29,9 +29,10 @@
RNDTEMP="${RNDTEMP:-.tmp.random}"
srcdir="${srcdir:-.}"
-builddir="${builddir:-.}"
abs_top_srcdir="${abs_top_srcdir:-`pwd`/../../}"
abs_top_builddir="${abs_top_builddir:-`pwd`/../../}"
+abs_builddir="${abs_builddir:-`pwd`}"
+export abs_builddir
MAKE="${MAKE:-make}"
FUZZ_TIME="${FUZZ_TIME:-10}"
@@ -141,7 +142,7 @@
default="$2"
asn="$3"
- "${builddir}/test-param-helper" "${param}" "${default}" "${asn}"
+ "${abs_builddir}/test-param-helper" "${param}" "${default}" "${asn}"
}
# compile_and_test "<text>" "<where found>"