aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/instance
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/instance')
-rw-r--r--pkg/instance/instance.go4
-rw-r--r--pkg/instance/instance_test.go7
2 files changed, 3 insertions, 8 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go
index 68920577b..f8e39e589 100644
--- a/pkg/instance/instance.go
+++ b/pkg/instance/instance.go
@@ -506,7 +506,7 @@ var MakeBin = func() string {
return "make"
}()
-func RunnerCmd(prog, fwdAddr, os, arch string, poolIdx, vmIdx int, collide, threaded, newEnv bool) string {
+func RunnerCmd(prog, fwdAddr, os, arch string, poolIdx, vmIdx int, threaded, newEnv bool) string {
return fmt.Sprintf("%s -addr=%s -os=%s -arch=%s -pool=%d -vm=%d "+
- "-collide=%t -threaded=%t -new-env=%t", prog, fwdAddr, os, arch, poolIdx, vmIdx, collide, threaded, newEnv)
+ "-threaded=%t -new-env=%t", prog, fwdAddr, os, arch, poolIdx, vmIdx, threaded, newEnv)
}
diff --git a/pkg/instance/instance_test.go b/pkg/instance/instance_test.go
index e27361091..92903512c 100644
--- a/pkg/instance/instance_test.go
+++ b/pkg/instance/instance_test.go
@@ -152,11 +152,10 @@ func TestRunnerCmd(t *testing.T) {
flagArch := flags.String("arch", "", "target architecture")
flagPool := flags.Int("pool", 0, "index of pool that started VM")
flagVM := flags.Int("vm", 0, "index of VM that started the Runner")
- flagCollide := flags.Bool("collide", true, "collide syscalls to provoke data races")
flagThreaded := flags.Bool("threaded", true, "use threaded mode in executor")
flagEnv := flags.Bool("new-env", true, "create a new environment for each program")
- cmdLine := RunnerCmd(os.Args[0], "localhost:1234", targets.Linux, targets.AMD64, 0, 0, false, false, false)
+ cmdLine := RunnerCmd(os.Args[0], "localhost:1234", targets.Linux, targets.AMD64, 0, 0, false, false)
args := strings.Split(cmdLine, " ")[1:]
if err := flags.Parse(args); err != nil {
t.Fatalf("error parsing flags: %v, want: nil", err)
@@ -182,10 +181,6 @@ func TestRunnerCmd(t *testing.T) {
t.Errorf("bad vm index: %d, want: %d", got, want)
}
- if got, want := *flagCollide, false; got != want {
- t.Errorf("bad collide: %t, want: %t", got, want)
- }
-
if got, want := *flagThreaded, false; got != want {
t.Errorf("bad threaded: %t, want: %t", got, want)
}