diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-06-28 13:46:53 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-07-01 09:13:47 +0000 |
| commit | a7b22031cdbe8555ef6d4a086bd11dbc9feea4fd (patch) | |
| tree | b678f59c9f269de3f5330a1d8ddf38c6afbb7656 /vm/vm.go | |
| parent | ce1ad06980f78675067a2519a76601cb6cdc692b (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.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 ) |
