aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ipc/ipc_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-06-02 11:58:29 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-06-04 09:50:32 +0000
commit06bf8101debe879447d0ef3a7a5b84cb11fa5acf (patch)
treed36506158005ab053b33b46559d48ba5e54b4a9e /pkg/ipc/ipc_test.go
parent3f1713c975c911f9ca5d27d0292f7505b176c873 (diff)
executor: remove noshmem mode
All OSes we have now support shmem. Support for Fuchia/Starnix/Windows wasn't implemented, but generally they support shared memory. Remove all of the complexity and code associated with noshmem mode. If/when we revive these OSes, it's easier to properly implement shmem mode for them.
Diffstat (limited to 'pkg/ipc/ipc_test.go')
-rw-r--r--pkg/ipc/ipc_test.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/pkg/ipc/ipc_test.go b/pkg/ipc/ipc_test.go
index 74a055635..c70bfe79c 100644
--- a/pkg/ipc/ipc_test.go
+++ b/pkg/ipc/ipc_test.go
@@ -23,7 +23,7 @@ import (
"github.com/google/syzkaller/sys/targets"
)
-func initTest(t *testing.T) (*prog.Target, rand.Source, int, bool, bool, targets.Timeouts) {
+func initTest(t *testing.T) (*prog.Target, rand.Source, int, bool, targets.Timeouts) {
t.Parallel()
iters := 100
if testing.Short() {
@@ -38,7 +38,7 @@ func initTest(t *testing.T) (*prog.Target, rand.Source, int, bool, bool, targets
t.Fatal(err)
}
rs := testutil.RandSource(t)
- return target, rs, iters, cfg.UseShmem, cfg.UseForkServer, cfg.Timeouts
+ return target, rs, iters, cfg.UseForkServer, cfg.Timeouts
}
// TestExecutor runs all internal executor unit tests.
@@ -77,7 +77,7 @@ func prepareTestProgram(target *prog.Target) *prog.Prog {
}
func TestExecute(t *testing.T) {
- target, _, _, useShmem, useForkServer, timeouts := initTest(t)
+ target, _, _, useForkServer, timeouts := initTest(t)
bin := csource.BuildExecutor(t, target, "../..")
@@ -86,7 +86,6 @@ func TestExecute(t *testing.T) {
t.Logf("testing flags 0x%x", flag)
cfg := &Config{
Executor: bin,
- UseShmem: useShmem,
UseForkServer: useForkServer,
Timeouts: timeouts,
}
@@ -122,11 +121,10 @@ func TestExecute(t *testing.T) {
}
func TestParallel(t *testing.T) {
- target, _, _, useShmem, useForkServer, timeouts := initTest(t)
+ target, _, _, useForkServer, timeouts := initTest(t)
bin := csource.BuildExecutor(t, target, "../..")
cfg := &Config{
Executor: bin,
- UseShmem: useShmem,
UseForkServer: useForkServer,
Timeouts: timeouts,
}