Skip to content

Commit

Permalink
Add a test for microsoft#1473
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyONeal committed Aug 30, 2024
1 parent f84a324 commit e81d7ba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions azure-pipelines/end-to-end-tests-dir/upgrade.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,12 @@ if (-Not ($output -match 'upgrade-test-port:[^:]+: SUCCEEDED:'))
{
throw "Upgrade didn't install"
}

# Also test providing a nonexistent name

$output = Run-VcpkgAndCaptureStdErr upgrade nonexistent "--x-builtin-ports-root=$portsRoot" @commonArgs
Throw-IfNotFailed
if ($output -match 'internal error:')
{
throw "Upgrade with a nonexistent name crashed"
}

0 comments on commit e81d7ba

Please sign in to comment.