aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vm.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-06-28 13:46:53 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-07-01 09:13:47 +0000
commita7b22031cdbe8555ef6d4a086bd11dbc9feea4fd (patch)
treeb678f59c9f269de3f5330a1d8ddf38c6afbb7656 /vm/vm.go
parentce1ad06980f78675067a2519a76601cb6cdc692b (diff)
vmimpl: add a delay after an error from the tracked process
It usually means a kernel crash, in which case we want to give the kernel some more time to print the whole coverage report to the console.
Diffstat (limited to 'vm/vm.go')
-rw-r--r--vm/vm.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/vm/vm.go b/vm/vm.go
index 6f66f8a37..879fc8feb 100644
--- a/vm/vm.go
+++ b/vm/vm.go
@@ -437,7 +437,7 @@ func (mon *monitor) createReport(defaultError string) *report.Report {
}
func (mon *monitor) waitForOutput() {
- timer := time.NewTimer(waitForOutputTimeout * mon.inst.pool.timeouts.Scale)
+ timer := time.NewTimer(vmimpl.WaitForOutputTimeout * mon.inst.pool.timeouts.Scale)
defer timer.Stop()
for {
select {
@@ -470,6 +470,5 @@ var (
beforeContextDefault = 128 << 10
afterContext = 128 << 10
- tickerPeriod = 10 * time.Second
- waitForOutputTimeout = 10 * time.Second
+ tickerPeriod = 10 * time.Second
)