We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 427e1f6 commit 998e600Copy full SHA for 998e600
1 file changed
test/unit-tests/test_main.ps1
@@ -37,7 +37,8 @@ foreach ($testFile in $testFiles) {
37
# Run the test file
38
$result = & $testPath
39
40
- if ($LASTEXITCODE -eq 0 -and $?) {
+ # Only check $LASTEXITCODE since $? might be false even when tests pass
41
+ if ($null -eq $LASTEXITCODE -or $LASTEXITCODE -eq 0) {
42
Write-Host "$script:GREEN`Tests passed in: $testFile$script:NC"
43
$passedCount++
44
}
0 commit comments