Use the path of the current executable by default in soft debugger tests on
authorNiklas Therning <niklas@therning.org>
Mon, 19 Sep 2016 12:11:54 +0000 (14:11 +0200)
committerNiklas Therning <niklas@therning.org>
Mon, 19 Sep 2016 12:27:35 +0000 (14:27 +0200)
commit7de12c0fed728941f217217d41909943ee175b5e
tree484d0859fd760ebc5a453366d8d726a877888d0c
parent55d0f3f3ec7860951aa918cfffc182eb89f56c8c
Use the path of the current executable by default in soft debugger tests on
Windows to launch the child mono process

The 'mono' shell script generated by the Cygwin make file system doesn't work
when running the soft debugger tests against an MSVC built mono executable.
This patch first tries with the main module of the current process when
running on Windows (and mono is built using MSVC). If it looks like a mono
executable the tests will use it before falling back to the shell script.
mcs/class/Mono.Debugger.Soft/Test/dtest.cs