aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vm_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-06-04 12:55:41 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-06-24 09:57:34 +0000
commite16e2c9a4cb6937323e861b646792a6c4c978a3c (patch)
tree6c513e98e5f465b44a98546d8984485d2c128582 /vm/vm_test.go
parent90d67044dab68568e8f35bc14b68055dbd166eff (diff)
executor: add runner mode
Move all syz-fuzzer logic into syz-executor and remove syz-fuzzer. Also restore syz-runtest functionality in the manager. Update #4917 (sets most signal handlers to SIG_IGN)
Diffstat (limited to 'vm/vm_test.go')
-rw-r--r--vm/vm_test.go17
1 files changed, 3 insertions, 14 deletions
diff --git a/vm/vm_test.go b/vm/vm_test.go
index 4f0e2836d..afb8634bd 100644
--- a/vm/vm_test.go
+++ b/vm/vm_test.go
@@ -191,7 +191,7 @@ var tests = []*Test{
Name: "fuzzer-is-preempted",
Body: func(outc chan []byte, errc chan error) {
outc <- []byte("BUG: bad\n")
- outc <- []byte(fuzzerPreemptedStr + "\n")
+ outc <- []byte(executorPreemptedStr + "\n")
},
},
{
@@ -263,23 +263,12 @@ var tests = []*Test{
},
},
{
- Name: "no-no-output-1",
+ Name: "no-no-output",
Exit: ExitNormal,
Body: func(outc chan []byte, errc chan error) {
for i := 0; i < 5; i++ {
time.Sleep(time.Second)
- outc <- append(executingProgram1, '\n')
- }
- errc <- nil
- },
- },
- {
- Name: "no-no-output-2",
- Exit: ExitNormal,
- Body: func(outc chan []byte, errc chan error) {
- for i := 0; i < 5; i++ {
- time.Sleep(time.Second)
- outc <- append(executingProgram2, '\n')
+ outc <- append(executingProgram, '\n')
}
errc <- nil
},