diff options
Diffstat (limited to 'cpp/src/tests/run_header_test.ps1')
| -rw-r--r-- | cpp/src/tests/run_header_test.ps1 | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/cpp/src/tests/run_header_test.ps1 b/cpp/src/tests/run_header_test.ps1 index c7bc2d788e..7d3e43a30f 100644 --- a/cpp/src/tests/run_header_test.ps1 +++ b/cpp/src/tests/run_header_test.ps1 @@ -35,13 +35,7 @@ if (Test-Path qpidd.port) { # Test runs from the tests directory but the test executables are in a # subdirectory based on the build type. Look around for it before trying # to start it. -$subs = "Debug","Release","MinSizeRel","RelWithDebInfo" -foreach ($sub in $subs) { - $prog = ".\$sub\header_test.exe" - if (Test-Path $prog) { - break - } -} +. $srcdir\find_prog.ps1 .\header_test.exe if (!(Test-Path $prog)) { "Cannot locate header_test.exe" exit 1 |
