Skip to content

Commit 0f3af74

Browse files
committed
Fix incorrect error message capture in make.ps1
1 parent 81e8872 commit 0f3af74

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

make.ps1

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,8 @@ switch ($Command.ToLower())
486486
$lldbargs = @('--batch', '--one-line', 'run', '--one-line-on-crash', '"frame variable"', '--one-line-on-crash', '"register read"', '--one-line-on-crash', '"bt all"', '--one-line-on-crash', '"quit 1"', '--')
487487

488488
& $outDir\ponyc.exe --bin-name=ubench --output=$outDir test\rt-stress\string-message-ubench
489-
& $lldbcmd $lldbargs $outDir\ubench.exe --pingers 320 --initial-pings 5 --report-count 40 --report-interval 300 --ponynoscale --ponynoblock
489+
$lldboutput = & $lldbcmd $lldbargs $outDir\ubench.exe --pingers 320 --initial-pings 5 --report-count 40 --report-interval 300 --ponynoscale --ponynoblock
490+
Write-Output $lldboutput
490491
$err = Get-ProcessExitCodeFromLLDB -LLDBOutput $lldboutput
491492
if ($err -ne 0) { throw "Stress test failed: exit code $err" }
492493
break
@@ -497,7 +498,8 @@ switch ($Command.ToLower())
497498
$lldbargs = @('--batch', '--one-line', 'run', '--one-line-on-crash', '"frame variable"', '--one-line-on-crash', '"register read"', '--one-line-on-crash', '"bt all"', '--one-line-on-crash', '"quit 1"', '--')
498499

499500
& $outDir\ponyc.exe --bin-name=ubench --output=$outDir test\rt-stress\string-message-ubench
500-
& $lldbcmd $lldbargs $outDir\ubench.exe --pingers 320 --initial-pings 5 --report-count 40 --report-interval 300 --ponynoscale
501+
$lldboutput = & $lldbcmd $lldbargs $outDir\ubench.exe --pingers 320 --initial-pings 5 --report-count 40 --report-interval 300 --ponynoscale
502+
Write-Output $lldboutput
501503
$err = Get-ProcessExitCodeFromLLDB -LLDBOutput $lldboutput
502504
if ($err -ne 0) { throw "Stress test failed: exit code $err" }
503505
break
@@ -508,7 +510,8 @@ switch ($Command.ToLower())
508510
$lldbargs = @('--batch', '--one-line', 'run', '--one-line-on-crash', '"frame variable"', '--one-line-on-crash', '"register read"', '--one-line-on-crash', '"bt all"', '--one-line-on-crash', '"quit 1"', '--')
509511

510512
& $outDir\ponyc.exe --debug --bin-name=ubench --output=$outDir test\rt-stress\string-message-ubench
511-
& $lldbcmd $lldbargs $outDir\ubench.exe --pingers 320 --initial-pings 5 --report-count 40 --report-interval 300 --ponynoscale --ponynoblock
513+
$lldboutput = & $lldbcmd $lldbargs $outDir\ubench.exe --pingers 320 --initial-pings 5 --report-count 40 --report-interval 300 --ponynoscale --ponynoblock
514+
Write-Output $lldboutput
512515
$err = Get-ProcessExitCodeFromLLDB -LLDBOutput $lldboutput
513516
if ($err -ne 0) { throw "Stress test failed: exit code $err" }
514517
break
@@ -519,7 +522,8 @@ switch ($Command.ToLower())
519522
$lldbargs = @('--batch', '--one-line', 'run', '--one-line-on-crash', '"frame variable"', '--one-line-on-crash', '"register read"', '--one-line-on-crash', '"bt all"', '--one-line-on-crash', '"quit 1"', '--')
520523

521524
& $outDir\ponyc.exe --debug --bin-name=ubench --output=$outDir test\rt-stress\string-message-ubench
522-
& $lldbcmd $lldbargs $outDir\ubench.exe --pingers 320 --initial-pings 5 --report-count 40 --report-interval 300 --ponynoscale
525+
$lldboutput = & $lldbcmd $lldbargs $outDir\ubench.exe --pingers 320 --initial-pings 5 --report-count 40 --report-interval 300 --ponynoscale
526+
Write-Output $lldboutput
523527
$err = Get-ProcessExitCodeFromLLDB -LLDBOutput $lldboutput
524528
if ($err -ne 0) { throw "Stress test failed: exit code $err" }
525529
break
@@ -530,7 +534,8 @@ switch ($Command.ToLower())
530534
$lldbargs = @('--batch', '--one-line', 'run', '--one-line-on-crash', '"frame variable"', '--one-line-on-crash', '"register read"', '--one-line-on-crash', '"bt all"', '--one-line-on-crash', '"quit 1"', '--')
531535

532536
& $outDir\ponyc.exe --bin-name=open-close --output=$outDir test\rt-stress\tcp-open-close
533-
& $lldbcmd $lldbargs $outDir\open-close.exe --ponynoblock 1000
537+
$lldboutput = & $lldbcmd $lldbargs $outDir\open-close.exe --ponynoblock 1000
538+
Write-Output $lldboutput
534539
$err = Get-ProcessExitCodeFromLLDB -LLDBOutput $lldboutput
535540
if ($err -ne 0) { throw "Stress test failed: exit code $err" }
536541
break
@@ -541,7 +546,8 @@ switch ($Command.ToLower())
541546
$lldbargs = @('--batch', '--one-line', 'run', '--one-line-on-crash', '"frame variable"', '--one-line-on-crash', '"register read"', '--one-line-on-crash', '"bt all"', '--one-line-on-crash', '"quit 1"', '--')
542547

543548
& $outDir\ponyc.exe --bin-name=open-close --output=$outDir test\rt-stress\tcp-open-close
544-
& $lldbcmd $lldbargs $outDir\open-close.exe 1000
549+
$lldboutput = & $lldbcmd $lldbargs $outDir\open-close.exe 1000
550+
Write-Output $lldboutput
545551
$err = Get-ProcessExitCodeFromLLDB -LLDBOutput $lldboutput
546552
if ($err -ne 0) { throw "Stress test failed: exit code $err" }
547553
break
@@ -552,7 +558,8 @@ switch ($Command.ToLower())
552558
$lldbargs = @('--batch', '--one-line', 'run', '--one-line-on-crash', '"frame variable"', '--one-line-on-crash', '"register read"', '--one-line-on-crash', '"bt all"', '--one-line-on-crash', '"quit 1"', '--')
553559

554560
& $outDir\ponyc.exe --debug --bin-name=open-close --output=$outDir test\rt-stress\tcp-open-close
555-
& $lldbcmd $lldbargs $outDir\open-close.exe --ponynoblock 1000
561+
$lldboutput = & $lldbcmd $lldbargs $outDir\open-close.exe --ponynoblock 1000
562+
Write-Output $lldboutput
556563
$err = Get-ProcessExitCodeFromLLDB -LLDBOutput $lldboutput
557564
if ($err -ne 0) { throw "Stress test failed: exit code $err" }
558565
break
@@ -563,7 +570,8 @@ switch ($Command.ToLower())
563570
$lldbargs = @('--batch', '--one-line', 'run', '--one-line-on-crash', '"frame variable"', '--one-line-on-crash', '"register read"', '--one-line-on-crash', '"bt all"', '--one-line-on-crash', '"quit 1"', '--')
564571

565572
& $outDir\ponyc.exe --debug --bin-name=open-close --output=$outDir test\rt-stress\tcp-open-close
566-
& $lldbcmd $lldbargs $outDir\open-close.exe 1000
573+
$lldboutput = & $lldbcmd $lldbargs $outDir\open-close.exe 1000
574+
Write-Output $lldboutput
567575
$err = Get-ProcessExitCodeFromLLDB -LLDBOutput $lldboutput
568576
if ($err -ne 0) { throw "Stress test failed: exit code $err" }
569577
break

0 commit comments

Comments
 (0)