Skip to content

Commit 6e97b89

Browse files
committedMar 7, 2025
Correct error code for stress tests
Make sure we use the process under test for exit code from make.ps1 when using LLDB. We sometimes fail because LLDB didn't exit with a 0. We aren't interested in that for "sucess or failure".
1 parent bea66cb commit 6e97b89

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎make.ps1

+8-8
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ switch ($Command.ToLower())
489489
$lldboutput = & $lldbcmd $lldbargs $outDir\ubench.exe --pingers 320 --initial-pings 5 --report-count 40 --report-interval 300 --ponynoscale --ponynoblock
490490
Write-Output $lldboutput
491491
$err = Get-ProcessExitCodeFromLLDB -LLDBOutput $lldboutput
492-
if ($err -ne 0) { throw "Stress test failed: exit code $err" }
492+
exit $err
493493
break
494494
}
495495
"stress-test-ubench-with-cd-release"
@@ -501,7 +501,7 @@ switch ($Command.ToLower())
501501
$lldboutput = & $lldbcmd $lldbargs $outDir\ubench.exe --pingers 320 --initial-pings 5 --report-count 40 --report-interval 300 --ponynoscale
502502
Write-Output $lldboutput
503503
$err = Get-ProcessExitCodeFromLLDB -LLDBOutput $lldboutput
504-
if ($err -ne 0) { throw "Stress test failed: exit code $err" }
504+
exit $err
505505
break
506506
}
507507
"stress-test-ubench-debug"
@@ -513,7 +513,7 @@ switch ($Command.ToLower())
513513
$lldboutput = & $lldbcmd $lldbargs $outDir\ubench.exe --pingers 320 --initial-pings 5 --report-count 40 --report-interval 300 --ponynoscale --ponynoblock
514514
Write-Output $lldboutput
515515
$err = Get-ProcessExitCodeFromLLDB -LLDBOutput $lldboutput
516-
if ($err -ne 0) { throw "Stress test failed: exit code $err" }
516+
exit $err
517517
break
518518
}
519519
"stress-test-ubench-with-cd-debug"
@@ -525,7 +525,7 @@ switch ($Command.ToLower())
525525
$lldboutput = & $lldbcmd $lldbargs $outDir\ubench.exe --pingers 320 --initial-pings 5 --report-count 40 --report-interval 300 --ponynoscale
526526
Write-Output $lldboutput
527527
$err = Get-ProcessExitCodeFromLLDB -LLDBOutput $lldboutput
528-
if ($err -ne 0) { throw "Stress test failed: exit code $err" }
528+
exit $err
529529
break
530530
}
531531
"stress-test-tcp-open-close-release"
@@ -537,7 +537,7 @@ switch ($Command.ToLower())
537537
$lldboutput = & $lldbcmd $lldbargs $outDir\open-close.exe --ponynoblock 1000
538538
Write-Output $lldboutput
539539
$err = Get-ProcessExitCodeFromLLDB -LLDBOutput $lldboutput
540-
if ($err -ne 0) { throw "Stress test failed: exit code $err" }
540+
exit $err
541541
break
542542
}
543543
"stress-test-tcp-open-close-with-cd-release"
@@ -549,7 +549,7 @@ switch ($Command.ToLower())
549549
$lldboutput = & $lldbcmd $lldbargs $outDir\open-close.exe 1000
550550
Write-Output $lldboutput
551551
$err = Get-ProcessExitCodeFromLLDB -LLDBOutput $lldboutput
552-
if ($err -ne 0) { throw "Stress test failed: exit code $err" }
552+
exit $err
553553
break
554554
}
555555
"stress-test-tcp-open-close-debug"
@@ -561,7 +561,7 @@ switch ($Command.ToLower())
561561
$lldboutput = & $lldbcmd $lldbargs $outDir\open-close.exe --ponynoblock 1000
562562
Write-Output $lldboutput
563563
$err = Get-ProcessExitCodeFromLLDB -LLDBOutput $lldboutput
564-
if ($err -ne 0) { throw "Stress test failed: exit code $err" }
564+
exit $err
565565
break
566566
}
567567
"stress-test-tcp-open-close-with-cd-debug"
@@ -573,7 +573,7 @@ switch ($Command.ToLower())
573573
$lldboutput = & $lldbcmd $lldbargs $outDir\open-close.exe 1000
574574
Write-Output $lldboutput
575575
$err = Get-ProcessExitCodeFromLLDB -LLDBOutput $lldboutput
576-
if ($err -ne 0) { throw "Stress test failed: exit code $err" }
576+
exit $err
577577
break
578578
}
579579
"install"

0 commit comments

Comments
 (0)
Please sign in to comment.