vm: fix string duplication

gometalinter says:

vm/vm.go:295:1⚠️ fuzzerPreemptedStr is unused (deadcode)
This commit is contained in:
Dmitry Vyukov 2018-12-17 10:46:08 +01:00
parent 1749e412ca
commit 527230f1d9

View File

@ -236,7 +236,7 @@ func (mon *monitor) extractError(defaultError string) *report.Report {
}
// Give it some time to finish writing the error message.
mon.waitForOutput()
if bytes.Contains(mon.output, []byte("SYZ-FUZZER: PREEMPTED")) {
if bytes.Contains(mon.output, []byte(fuzzerPreemptedStr)) {
return nil
}
if !mon.reporter.ContainsCrash(mon.output[mon.matchPos:]) {