From bf0d67a9e0a29b53be31cf9f211a9de2dacbfd78 Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Wed, 28 May 2014 18:14:26 -0500 Subject: [PATCH] Ensure test program is killed after spec --- proctl/proctl_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proctl/proctl_test.go b/proctl/proctl_test.go index 9836b4c7..b12b15bc 100644 --- a/proctl/proctl_test.go +++ b/proctl/proctl_test.go @@ -178,6 +178,8 @@ func TestBreakPointWithNonExistantFunction(t *testing.T) { if err == nil { t.Fatal("Should not be able to break at non existant function") } + + cmd.Process.Kill() } func TestClearBreakPoint(t *testing.T) { @@ -220,4 +222,6 @@ func TestClearBreakPoint(t *testing.T) { if len(p.BreakPoints) != 0 { t.Fatal("Breakpoint not removed internally") } + + cmd.Process.Kill() }