Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/Build-QuantLibDLL.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,14 @@ if ($RunTests) {
$env:PATH = "$DllDir;$env:PATH"
Write-Host " DLL directory added to PATH: $DllDir"

# Temporarily relax ErrorActionPreference so that stderr output from the
# native executable (e.g. Boost.Test banner) does not trigger a
# NativeCommandError when combined with 2>&1 and $ErrorActionPreference=Stop.
$prevEAP = $ErrorActionPreference
$ErrorActionPreference = "Continue"
$testOutput = & $TestExePath.FullName 2>&1 | Out-String
$testExitCode = $LASTEXITCODE
$ErrorActionPreference = $prevEAP
Write-Host $testOutput

if ($testExitCode -ne 0) {
Expand Down
Loading