| "veyron/lib/testutil/blackbox" |
| "veyron/runtimes/google/rt" |
| blackbox.CommandTable["withRuntime"] = withRuntime |
| blackbox.CommandTable["withoutRuntime"] = withoutRuntime |
| func simpleEchoProgram() { |
| fmt.Println(blackbox.ReadLineFromStdin()) |
| blackbox.WaitForEOFOnStdin() |
| func withRuntime([]string) { |
| func withoutRuntime([]string) { |
| func TestWithRuntime(t *testing.T) { |
| c := blackbox.HelperCommand(t, "withRuntime") |
| syscall.Kill(c.Cmd.Process.Pid, syscall.SIGHUP) |
| func TestWithoutRuntime(t *testing.T) { |
| c := blackbox.HelperCommand(t, "withoutRuntime") |
| syscall.Kill(c.Cmd.Process.Pid, syscall.SIGHUP) |
| c.ExpectEOFAndWaitForExitCode(fmt.Errorf("exit status 2")) |