diff options
| author | Ulf Hermann <[email protected]> | 2017-05-04 17:57:33 +0200 |
|---|---|---|
| committer | Ulf Hermann <[email protected]> | 2017-05-08 12:11:44 +0000 |
| commit | d83dee7edd0c00d39e4cff2e303938d5d3e487c1 (patch) | |
| tree | b0029af45ff7e77ffb723f33d23b246f3fed9cb2 /tests/run-stack-i-test.sh | |
| parent | 7393feccdc7726f9720677c6327da28f509af20e (diff) | |
Correctly determine STACKCMD on windows
error() will only output the file name, but with ".exe" on windows.
Change-Id: Icbf9c026003d3e18abc9f68e13789d04811af48b
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'tests/run-stack-i-test.sh')
| -rwxr-xr-x | tests/run-stack-i-test.sh | 5 |
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 |
