Tests: Improve RunCMake.GetPrerequisites sample executable selection

Get the runtime dependencies of an executable just built by the
toolchain with which tests are running.  Previously we used the `cmake`
binary itself, but that might have been built for a different ABI than
the tested binutils support.
3 files changed