summaryrefslogtreecommitdiffstats
path: root/tests/run-stack-d-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-stack-d-test.sh')
-rwxr-xr-xtests/run-stack-d-test.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/run-stack-d-test.sh b/tests/run-stack-d-test.sh
index a9f03806..ef3c6e84 100755
--- a/tests/run-stack-d-test.sh
+++ b/tests/run-stack-d-test.sh
@@ -64,6 +64,11 @@ testfiles testfiledwarfinlines testfiledwarfinlines.core
# the error message, which we also try to match.
if test "$elfutils_testrun" = "installed"; then
STACKCMD=${bindir}/`program_transform stack`
+if test -f ${STACKCMD}.exe; then
+STACKCMD=`program_transform stack`.exe
+fi
+elif test -f ${abs_top_builddir}/src/stack.exe; then
+STACKCMD=stack.exe
else
STACKCMD=${abs_top_builddir}/src/stack
fi