summaryrefslogtreecommitdiffstats
path: root/tests/run-stack-i-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-stack-i-test.sh')
-rwxr-xr-xtests/run-stack-i-test.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/run-stack-i-test.sh b/tests/run-stack-i-test.sh
index 3722ab09..a09e46d4 100755
--- a/tests/run-stack-i-test.sh
+++ b/tests/run-stack-i-test.sh
@@ -25,6 +25,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